From 2310eed6d8a73af7dd380eefb3ee7a30d277909a Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 22 Dec 2014 16:38:00 +0200 Subject: [PATCH] Fix the Windows version check in Touchscreen::is_available --- source/input/windows/touchscreen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/input/windows/touchscreen.cpp b/source/input/windows/touchscreen.cpp index 7e314ca..d6e76e0 100644 --- a/source/input/windows/touchscreen.cpp +++ b/source/input/windows/touchscreen.cpp @@ -15,11 +15,11 @@ bool Touchscreen::is_available() version.dwOSVersionInfoSize = sizeof(version); version.dwMajorVersion = 6; version.dwMinorVersion = 1; - version.dwServicePackMajor = 0; - version.dwServicePackMinor = 0; + version.wServicePackMajor = 0; + version.wServicePackMinor = 0; DWORD mask = VER_MAJORVERSION|VER_MINORVERSION|VER_SERVICEPACKMAJOR|VER_SERVICEPACKMINOR; DWORDLONG cond = VerSetConditionMask(0, mask, VER_GREATER_EQUAL); - if(!VerifyVersionInfo(&version, type, cond)) + if(VerifyVersionInfo(&version, mask, cond)) return false; if(!GetSystemMetrics(SM_TABLETPC)) -- 2.45.2