diff options
Diffstat (limited to 'main/main.c')
-rw-r--r-- | main/main.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/main/main.c b/main/main.c index 2d650e803b..0d49e271fd 100644 --- a/main/main.c +++ b/main/main.c @@ -898,12 +898,16 @@ int php_module_startup(sapi_module_struct *sf) WSADATA wsaData; #endif #if WIN32|WINNT - /* Get build numbers for Windows NT or Win95 */ - if (dwVersion < 0x80000000){ - php_os="WINNT"; - } else { - php_os="WIN32"; - } + { + DWORD dwVersion = GetVersion(); + + /* Get build numbers for Windows NT or Win95 */ + if (dwVersion < 0x80000000){ + php_os="WINNT"; + } else { + php_os="WIN32"; + } + } #else php_os=PHP_OS; #endif |