Make the log mention Windows 8 instead of "unknown NT-based"

(fwiw, I don't like windows 8. also can someone tell me what version number windows 10 will be using?)
This commit is contained in:
freem
2014-10-06 17:50:47 -05:00
parent 63fa9afc24
commit 4629bdef5c
+13
View File
@@ -240,6 +240,7 @@ static void GetWindowsVersionDebugInfo()
*/
}
else if(ovi.dwMajorVersion == 6 && ovi.dwMinorVersion == 1)
{
Ver += "Win7";
// todo: make this check work
/*
@@ -248,6 +249,18 @@ static void GetWindowsVersionDebugInfo()
else
Ver += "WinServer2008 R2";
*/
}
else if(ovi.dwMajorVersion == 6 && ovi.dwMinorVersion == 2)
{
Ver += "Win8";
// todo: make this check work
/*
if(ovi.wProductType == VER_NT_WORKSTATION)
Ver += "Win7";
else
Ver += "WinServer2008 R2";
*/
}
else
Ver += "unknown NT-based";
} else Ver += "???";