You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2022/06/29 11:06:10 UTC

[tomcat-native] branch 1.2.x updated: Remove code intended for pre Windows XP systems (2000, NT4, etc)

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 1.2.x
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git


The following commit(s) were added to refs/heads/1.2.x by this push:
     new 21d60f6de Remove code intended for pre Windows XP systems (2000, NT4, etc)
21d60f6de is described below

commit 21d60f6de557a4bb61737d175644e883e28236fb
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Jun 29 12:05:32 2022 +0100

    Remove code intended for pre Windows XP systems (2000, NT4, etc)
---
 native/os/win32/system.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/native/os/win32/system.c b/native/os/win32/system.c
index 4731d17bf..c09cc4959 100644
--- a/native/os/win32/system.c
+++ b/native/os/win32/system.c
@@ -79,17 +79,6 @@ DllMain(
             if (fnGetSystemTimes == NULL) {
                 FreeLibrary(h_kernel);
                 h_kernel = NULL;
-#if (_WIN32_WINNT < 0x0501)
-                if ((h_ntdll = LoadLibrary("ntdll.dll")) != NULL)
-                    fnNtQuerySystemInformation =
-                        (pfnNtQuerySystemInformation)GetProcAddress(h_ntdll,
-                                                "NtQuerySystemInformation");
-
-                if (fnNtQuerySystemInformation == NULL) {
-                    FreeLibrary(h_ntdll);
-                    h_ntdll = NULL;
-                }
-#endif
             }
             GetModuleFileName(instance, dll_file_name, sizeof(dll_file_name));
             break;


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org