Skip to content

Commit

Permalink
Fix Windows XP Home vs Pro detection.
Browse files Browse the repository at this point in the history
VER_SUITE_PERSONAL is set for XP Home therefore the check was backwards.
  • Loading branch information
micove committed Aug 26, 2015
1 parent 45fc960 commit f29dd8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/Utilities/Windows/WinMisc.cpp
Expand Up @@ -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 )
Expand Down

0 comments on commit f29dd8b

Please sign in to comment.