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";
|
osName = "Windows Vista";
|
||||||
else
|
else
|
||||||
osName = "Windows Server 2008";
|
osName = "Windows Server 2008";
|
||||||
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
if( osVersionInfoEx.wProductType == VER_NT_WORKSTATION )
|
if( osVersionInfoEx.wProductType == VER_NT_WORKSTATION )
|
||||||
osName = "Windows 7";
|
osName = "Windows 7";
|
||||||
else
|
else
|
||||||
osName = "Windows Server 2008 R2";
|
osName = "Windows Server 2008 R2";
|
||||||
|
break;
|
||||||
}break;
|
}break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue