diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-11-19 20:43:04 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-11-19 20:43:04 +0000 |
commit | f8863cbe540a4034f658efef1010fc07894afb2f (patch) | |
tree | 6baaccf45f6b7ac0b5b03cab13eb8ddaaa90e8b3 /winsup/utils | |
parent | 690d1333f5f3591baf9c790f080f54e7eff22597 (diff) | |
download | newlib-f8863cbe540a4034f658efef1010fc07894afb2f.zip newlib-f8863cbe540a4034f658efef1010fc07894afb2f.tar.gz newlib-f8863cbe540a4034f658efef1010fc07894afb2f.tar.bz2 |
* cygcheck.cc (dump_sysinfo): Revert Windows 8.1 hack. It's not
working. Add a (hopefully temporary) comment.
Diffstat (limited to 'winsup/utils')
-rw-r--r-- | winsup/utils/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/utils/cygcheck.cc | 15 |
2 files changed, 9 insertions, 11 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 44f420c..cdda174 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,5 +1,10 @@ 2013-11-19 Corinna Vinschen <corinna@vinschen.de> + * cygcheck.cc (dump_sysinfo): Revert Windows 8.1 hack. It's not + working. Add a (hopefully temporary) comment. + +2013-11-19 Corinna Vinschen <corinna@vinschen.de> + * cygcheck.cc (dump_sysinfo): Drop code trying to fetch OSVERSIONINFO if fetching OSVERSIONINFOEX failed. Drop code handling unsupported platform IDs. Add code to tweak dwMinorVersion on Windows 8.1 if no diff --git a/winsup/utils/cygcheck.cc b/winsup/utils/cygcheck.cc index 87557da..106577c 100644 --- a/winsup/utils/cygcheck.cc +++ b/winsup/utils/cygcheck.cc @@ -1465,17 +1465,10 @@ dump_sysinfo () ? "7" : "2008 R2"); break; case 2: - /* No way to distinguish W8 and W8.1 by OS version numbers - alone, unless the executables have a matching manifest. - What a big, fat mess. */ - if (osversion.dwBuildNumber < 9200) - { - strcpy (osname, osversion.wProductType == VER_NT_WORKSTATION - ? "8" : "2012"); - break; - } - /*FALLTHRU*/ - case 3: + strcpy (osname, osversion.wProductType == VER_NT_WORKSTATION + ? "8" : "2012"); + break; + case 3: /* Unreached due to mainfest nonsense. */ default: osversion.dwMinorVersion = 3; strcpy (osname, osversion.wProductType == VER_NT_WORKSTATION |