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))