From ddc2874791accc89a6540189378e136ab651db9d Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 30 Jun 2004 22:43:48 +0000 Subject: [PATCH] fix winnt flag --- src/os/win32/win32_sigar.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/os/win32/win32_sigar.c b/src/os/win32/win32_sigar.c index 0d3580f4..1b09139d 100644 --- a/src/os/win32/win32_sigar.c +++ b/src/os/win32/win32_sigar.c @@ -142,8 +142,11 @@ int sigar_os_open(sigar_t **sigar) version.dwOSVersionInfoSize = sizeof(version); GetVersionEx(&version); - (*sigar)->winnt = - (version.dwPlatformId == VER_PLATFORM_WIN32_NT); + /* + * 4 == NT 4.0 + * 5 == 2000, XP, 2003 Server + */ + (*sigar)->winnt = (version.dwMajorVersion == 4); if (USING_WIDE_S(*sigar)) { WCHAR wmachine[MAX_PATH+1];