ENH: fix for Vista
This commit is contained in:
parent
b55f7a261f
commit
8e5886e652
@ -2980,8 +2980,14 @@ bool SystemInformationImplementation::QueryOSInformation()
|
|||||||
{
|
{
|
||||||
if (osvi.wProductType == VER_NT_WORKSTATION)
|
if (osvi.wProductType == VER_NT_WORKSTATION)
|
||||||
{
|
{
|
||||||
|
if (osvi.dwMajorVersion == 6)
|
||||||
|
{
|
||||||
|
this->OSRelease = "Vista";
|
||||||
|
}
|
||||||
// VER_SUITE_PERSONAL may not be defined
|
// VER_SUITE_PERSONAL may not be defined
|
||||||
#ifdef VER_SUITE_PERSONAL
|
#ifdef VER_SUITE_PERSONAL
|
||||||
|
else
|
||||||
|
{
|
||||||
if (osvi.wSuiteMask & VER_SUITE_PERSONAL)
|
if (osvi.wSuiteMask & VER_SUITE_PERSONAL)
|
||||||
{
|
{
|
||||||
this->OSRelease += " Personal";
|
this->OSRelease += " Personal";
|
||||||
@ -2990,6 +2996,7 @@ bool SystemInformationImplementation::QueryOSInformation()
|
|||||||
{
|
{
|
||||||
this->OSRelease += " Professional";
|
this->OSRelease += " Professional";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else if (osvi.wProductType == VER_NT_SERVER)
|
else if (osvi.wProductType == VER_NT_SERVER)
|
||||||
|
@ -4182,7 +4182,7 @@ kwsys_stl::string SystemTools::GetOperatingSystemNameAndVersion()
|
|||||||
res += "Microsoft Windows Server 2008 family";
|
res += "Microsoft Windows Server 2008 family";
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
res += "Microsoft Windows Vista or Windows Server 2003";
|
res += "Microsoft Windows Vista or Windows Server 2008";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user