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
{
// We support only Windows NT (XP and up) - everything else is not interesting.
OSVERSIONINFO osvi;
ZeroMemory(&osvi, sizeof(OSVERSIONINFO));
OSVERSIONINFOW osvi;
ZeroMemory(&osvi, sizeof(OSVERSIONINFOW));
GetVersionExW(&osvi);
QString os = QString("Windows NT %1.%2").arg(osvi.dwMajorVersion).arg(osvi.dwMinorVersion);