fixed switch statement in test that would report Win7 when the platform was Vista
This commit is contained in:
parent
6fa03e953c
commit
73c241d7ba
1 changed files with 2 additions and 0 deletions
|
|
@ -141,11 +141,13 @@ static void printWindowsVersionInfo( FILE *fp )
|
|||
osName = "Windows Vista";
|
||||
else
|
||||
osName = "Windows Server 2008";
|
||||
break;
|
||||
case 1:
|
||||
if( osVersionInfoEx.wProductType == VER_NT_WORKSTATION )
|
||||
osName = "Windows 7";
|
||||
else
|
||||
osName = "Windows Server 2008 R2";
|
||||
break;
|
||||
}break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue