mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-29 20:30:54 +00:00
Changed: Detect Windows 8 and Windows Server 2012
This commit is contained in:
parent
c7899841d3
commit
f2ee0e99d8
1 changed files with 8 additions and 1 deletions
|
@ -231,7 +231,14 @@ string CSystemInfo::getOS()
|
|||
}
|
||||
else if ( osvi.dwMajorVersion == 6 )
|
||||
{
|
||||
if ( osvi.dwMinorVersion == 1 )
|
||||
if ( osvi.dwMinorVersion == 2 )
|
||||
{
|
||||
if( osvi.wProductType == VER_NT_WORKSTATION )
|
||||
OSString += " Windows 8";
|
||||
else
|
||||
OSString += " Windows Server 2012";
|
||||
}
|
||||
else if ( osvi.dwMinorVersion == 1 )
|
||||
{
|
||||
if( osvi.wProductType == VER_NT_WORKSTATION )
|
||||
OSString += " Windows 7";
|
||||
|
|
Loading…
Reference in a new issue