Detect Windows server 2008 and Windows server 2008 R2 - compilation fix

This commit is contained in:
Christophe Grenier 2009-09-04 09:08:44 +02:00
parent 733a732f03
commit 3fa7dda9e7

View file

@ -141,7 +141,7 @@ http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/ge
else else
{ {
snprintf(buffer, sizeof(buffer) - 1, "Windows %s %i.%i.%i", snprintf(buffer, sizeof(buffer) - 1, "Windows %s %i.%i.%i",
(Ver.wProductType == VER_NT_WORKSTATION ? "WorkStation" : Server), (Ver.wProductType == VER_NT_WORKSTATION ? "WorkStation" : "Server"),
(int)Ver.dwMajorVersion, (int)Ver.dwMinorVersion, (int)Ver.dwBuildNumber); (int)Ver.dwMajorVersion, (int)Ver.dwMinorVersion, (int)Ver.dwBuildNumber);
} }