KWSys: Teach SystemInformation about WinXP Pro and Win7
Modify a few lines in the function QueryOSInformation. Change-Id: Ief8327144fdf5588354d4ce8240eb0206722e77e Author: Marius Staring <m.staring@lumc.nl>
This commit is contained in:
parent
bbb3d81d38
commit
d8e0bfa786
@ -3316,16 +3316,25 @@ bool SystemInformationImplementation::QueryOSInformation()
|
||||
{
|
||||
this->OSRelease = "XP";
|
||||
}
|
||||
// XP Professional x64
|
||||
if (osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 2)
|
||||
{
|
||||
this->OSRelease = "XP";
|
||||
}
|
||||
#ifdef VER_NT_WORKSTATION
|
||||
// Test for product type.
|
||||
if (bOsVersionInfoEx)
|
||||
{
|
||||
if (osvi.wProductType == VER_NT_WORKSTATION)
|
||||
{
|
||||
if (osvi.dwMajorVersion == 6)
|
||||
if (osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 0)
|
||||
{
|
||||
this->OSRelease = "Vista";
|
||||
}
|
||||
if (osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 1)
|
||||
{
|
||||
this->OSRelease = "7";
|
||||
}
|
||||
// VER_SUITE_PERSONAL may not be defined
|
||||
#ifdef VER_SUITE_PERSONAL
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user