aboutsummaryrefslogtreecommitdiffstats
path: root/version_info.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2008-12-30 19:17:35 +0000
committerGerald Combs <gerald@wireshark.org>2008-12-30 19:17:35 +0000
commitd2aa34721af7554e9d9f6b3599f78b07e9c6e3a4 (patch)
tree1bafec1564df4a50794353116d033a979fd6a308 /version_info.c
parent08364de20d45067943f17280f40a3b904e801c9e (diff)
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
Diffstat (limited to 'version_info.c')
-rw-r--r--version_info.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/version_info.c b/version_info.c
index e37cfbe75f..a537b43bcc 100644
--- a/version_info.c
+++ b/version_info.c
@@ -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");