Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/wincap.cc')
-rw-r--r--winsup/cygwin/wincap.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/winsup/cygwin/wincap.cc b/winsup/cygwin/wincap.cc
index d84679df5..9a4708c3c 100644
--- a/winsup/cygwin/wincap.cc
+++ b/winsup/cygwin/wincap.cc
@@ -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;