From: William A. Rowe Jr Date: Thu, 23 Aug 2007 01:24:46 +0000 (+0000) Subject: Merge r536052, r556879, r557188 from trunk: X-Git-Tag: 2.0.61~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=741b56a04ef02911da2dc22c8ecf8a2c528898f0;p=thirdparty%2Fapache%2Fhttpd.git Merge r536052, r556879, r557188 from trunk: Add detection for post XP operating systems. Think this can be safely backported to 2.2 and 2.0 branches ApacheMonitor valid OS is any WIN32_NT version. Simplify OS detection. We are only interested in NT and WIN2K+ (so we can use services.msc) Submitted by: mturk Reviewed by: wrowe, jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@568791 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 5de52591a5d..8104b963080 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,7 @@ - -*- coding: utf-8 -*- + -*- coding: utf-8 -*- Changes with Apache 2.0.61 + *) ApacheMonitor: Fix Windows Vista detection. [Mladen Turk] Changes with Apache 2.0.60 diff --git a/support/win32/ApacheMonitor.c b/support/win32/ApacheMonitor.c index 2fe10b996f6..084c79139e4 100644 --- a/support/win32/ApacheMonitor.c +++ b/support/win32/ApacheMonitor.c @@ -49,6 +49,7 @@ #define OS_VERSION_WIN9X 1 #define OS_VERSION_WINNT 2 #define OS_VERSION_WIN2K 3 + /* Should be enough */ #define MAX_APACHE_SERVICES 128 #define MAX_APACHE_COMPUTERS 32 @@ -278,15 +279,10 @@ BOOL GetSystemOSVersion(LPDWORD dwVersion) switch (osvi.dwPlatformId) { case VER_PLATFORM_WIN32_NT: - if (osvi.dwMajorVersion <= 4) { - *dwVersion = OS_VERSION_WINNT; - } - else if (osvi.dwMajorVersion == 5) { + if (osvi.dwMajorVersion >= 5) *dwVersion = OS_VERSION_WIN2K; - } - else { - return FALSE; - } + else + *dwVersion = OS_VERSION_WINNT; break; case VER_PLATFORM_WIN32_WINDOWS: