Use RtlGetVersion() to retrieve the real OS version in wxMSW

Unlike GetVersionEx(), this function still returns the real version and not
the fiction concocted by the OS for each program depending on its manifest.

Also use OSVERSIONINFOEXW instead of OSVERSIONINFOEX as RtlGetVersion() only
exists in the Unicode version.

Closes #15321.
This commit is contained in:
Vadim Zeitlin
2015-10-30 23:20:47 +01:00
parent 89b0692fff
commit d61b52a60e
2 changed files with 23 additions and 11 deletions

View File

@@ -181,6 +181,7 @@ wxMSW:
- Correct wxGetOsDescription() for Windows 10 (Tobias Taschner).
- Make wxListCtrl &c appearance more native on modern systems (Tobias Taschner).
- Don't send wxActivateEvent for minimized windows (bzcdr).
- Return correct OS version under Windows 8 and later.
wxOSX/Cocoa: