Check in a modified version of Jaap's patch in bug 3162. This should fix

compilation under Visual C++ 6.0.

svn path=/trunk/; revision=27136
This commit is contained in:
Gerald Combs 2008-12-30 19:17:35 +00:00
parent 08364de20d
commit d2aa34721a
1 changed files with 5 additions and 0 deletions

View File

@ -407,7 +407,12 @@ get_runtime_version_info(GString *str, void (*additional_info)(GString *))
break;
case 6:
#ifndef VER_NT_WORKSTATION
#define VER_NT_WORKSTATION 0x01
if ((info.wReserved[1] & 0xff) == VER_NT_WORKSTATION)
#else
if (info.wProductType == VER_NT_WORKSTATION)
#endif
g_string_append_printf(str, "Windows Vista");
else
g_string_append_printf(str, "Windows Server 2008");