Return wxWinVersion_[78] correctly from wxMSW wxGetWinVersion().

This is especially important because the workaround of r76152 for IFileDialog
bug under Windows Vista also applied under later Windows versions as they were
not detected correctly.

Closes #16286.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-05-22 20:33:48 +00:00
parent a52b9b5715
commit 6ebd5eed16
2 changed files with 16 additions and 4 deletions

View File

@@ -1478,10 +1478,19 @@ wxWinVersion wxGetWinVersion()
break;
case 6:
return wxWinVersion_NT6;
}
break;
switch ( verMin )
{
case 0:
return wxWinVersion_Vista;
case 1:
return wxWinVersion_7;
case 2:
return wxWinVersion_8;
}
break;
}
default:
// Do nothing just to silence GCC warning
break;