fixed switch statement in test that would report Win7 when the platform was Vista

This commit is contained in:
rossb 2011-07-24 05:28:47 +00:00
commit 73c241d7ba

View file

@ -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;
} }
} }