* wincap.cc (wincapc::init): Fix dwMinorVersion for Windows 8.1 and

Server 2012.  Explain why this is necessary.
This commit is contained in:
Corinna Vinschen 2013-11-19 18:01:04 +00:00
parent 85cef403d8
commit 705b50fe39
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2013-11-19 Corinna Vinschen <corinna@vinschen.de>
* wincap.cc (wincapc::init): Fix dwMinorVersion for Windows 8.1 and
Server 2012. Explain why this is necessary.
2013-11-19 Corinna Vinschen <corinna@vinschen.de>
* autoload.cc (IdnToAscii): Define.

View File

@ -197,6 +197,15 @@ wincapc::init ()
case 1:
caps = &wincap_7;
break;
case 2:
/* Hack for Windows 8.1 and Server 2012R2: If the executable is
missing a Windows 8.1 mainfest, the OS returns dwMinorVersion
2, as if it's running on Windows 8 or Server 2012. The
correct dwMinorVersion is 3 for 8.1/2012R2, though, so we're
fixing this up here. */
if (version.dwBuildNumber >= 9200)
version.dwMinorVersion = 3;
/*FALLTHRU*/
default:
caps = &wincap_8;
break;