Make version check more future proof.
authorNathan Letwory <nathan@letworyinteractive.com>
Fri, 28 Jan 2011 08:51:15 +0000 (08:51 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Fri, 28 Jan 2011 08:51:15 +0000 (08:51 +0000)
intern/ghost/intern/GHOST_WindowWin32.cpp

index 11c6ab01287ee98a81daffcd0410494e2b2c462b..7afd3fef83227c71867455d780784c006708b5c7 100644 (file)
@@ -149,12 +149,12 @@ GHOST_WindowWin32::GHOST_WindowWin32(
        if(!GetVersionEx((OSVERSIONINFO *)&versionInfo)) {
                versionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
                if(GetVersionEx((OSVERSIONINFO*)&versionInfo)) {
-                       if(versionInfo.dwMajorVersion>=6 && versionInfo.dwMinorVersion>=1) {
+                       if((versionInfo.dwMajorVersion==6 && versionInfo.dwMinorVersion>=1) || versionInfo.dwMajorVersion >= 7) {
                                hasMinVersionForTaskbar = true;
                        }
                }
        } else {
-               if(versionInfo.dwMajorVersion>=6 && versionInfo.dwMinorVersion>=1) {
+               if((versionInfo.dwMajorVersion==6 && versionInfo.dwMinorVersion>=1) || versionInfo.dwMajorVersion >= 7) {
                        hasMinVersionForTaskbar = true;
                }
        }