wxGetWinVersion() doesn't recognize Windows newer than Vista
|Reported by:||PB||Owned by:||VZ|
Function wxGetWinVersion() doesn't recognize Windows newer than Vista.
As a side effect, new wxDirDialog using IFileDialog interface is never used after .
I have attached a patch proposal but there are few issues with it I am aware of, for example:
Returning wxWinVersion_8_1 for any Windows with major version 6 and minor version higher than 3 is certainly not an ideal solution (such OS may not be ever released though). OTOH it still may be better than returning wxWinVersion_Unknown which may break code relying on conditions like this
if ( wxGetWinVersion() > wxWinVersion_Vista )
Regardless, any such code will break anyway for Windows with major version higher than 6, so...
Of course the whole situation with detecting Windows 8.1 is a bit more complicated.