NOISSUE fix build (OSVERSIONINFOW)

This commit is contained in:
Petr Mrázek 2016-11-24 23:32:21 +01:00
parent 486d653586
commit a5fb931e8e

View File

@ -12,8 +12,8 @@ QString Sys::getSystemInfo()
else else
{ {
// We support only Windows NT (XP and up) - everything else is not interesting. // We support only Windows NT (XP and up) - everything else is not interesting.
OSVERSIONINFO osvi; OSVERSIONINFOW osvi;
ZeroMemory(&osvi, sizeof(OSVERSIONINFO)); ZeroMemory(&osvi, sizeof(OSVERSIONINFOW));
GetVersionExW(&osvi); GetVersionExW(&osvi);
QString os = QString("Windows NT %1.%2").arg(osvi.dwMajorVersion).arg(osvi.dwMinorVersion); QString os = QString("Windows NT %1.%2").arg(osvi.dwMajorVersion).arg(osvi.dwMinorVersion);