Windows: Fix OS version determination for Windows >= 8
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Fri, 19 Dec 2014 10:07:47 +0000 (11:07 +0100)
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Thu, 8 Jan 2015 05:29:18 +0000 (06:29 +0100)
commit18c5ff04103eadcb532d03d526714385943295ab
treee268d78f08a52493c176e2efd548b59e5763e82c
parent8d831f5f444802879ae416bd110184d5a6cf1b26
Windows: Fix OS version determination for Windows >= 8

First, try to determine the version of kernel32.dll by
using the version API. If that fails, loop using the
version macros, taking the major version into account.

Hangs in the minor version loop have been observed, potentially
related to the major version.

Task-number: QTBUG-43413
Change-Id: I982e78873510e7598c7cf839177e59812acd86f6
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
(cherry picked from qtbase/6796f2337ee31b4b4f07eaa54d868b999c39233a)
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/global/qglobal.cpp