From f29dd8b92790ed1a616464d0333a40a1a53183d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20A=2E=20Col=C3=B3n=20V=C3=A9lez?= Date: Wed, 26 Aug 2015 16:02:26 -0400 Subject: [PATCH] Fix Windows XP Home vs Pro detection. VER_SUITE_PERSONAL is set for XP Home therefore the check was backwards. --- common/src/Utilities/Windows/WinMisc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/Utilities/Windows/WinMisc.cpp b/common/src/Utilities/Windows/WinMisc.cpp index 4ade8e46fd..43be0bfbbd 100644 --- a/common/src/Utilities/Windows/WinMisc.cpp +++ b/common/src/Utilities/Windows/WinMisc.cpp @@ -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 )