Fix Windows XP Home vs Pro detection.

VER_SUITE_PERSONAL is set for XP Home therefore the check was backwards.
This commit is contained in:
Miguel A. Colón Vélez 2015-08-26 16:02:26 -04:00
parent 45fc9603e3
commit f29dd8b927

View File

@ -244,7 +244,7 @@ wxString GetOSVersionString()
if ( osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 1 )
{
retval += L"Windows XP ";
retval += ( osvi.wSuiteMask & VER_SUITE_PERSONAL ) ? L"Professional" : L"Home Edition";
retval += ( osvi.wSuiteMask & VER_SUITE_PERSONAL ) ? L"Home Edition" : L"Professional";
}
if ( osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 0 )