diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2011-01-28 11:51:15 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2011-01-28 11:51:15 +0300 |
commit | 037920caffe113c6ab9546ac426965fd5891e58c (patch) | |
tree | 9385e6dbc292153dab1b571a52afe509781dad4a /intern/ghost | |
parent | 53b83262c5ee5a2e71c23a3702cef8eef604f94b (diff) |
Make version check more future proof.
Diffstat (limited to 'intern/ghost')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowWin32.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_WindowWin32.cpp b/intern/ghost/intern/GHOST_WindowWin32.cpp index 11c6ab01287..7afd3fef832 100644 --- a/intern/ghost/intern/GHOST_WindowWin32.cpp +++ b/intern/ghost/intern/GHOST_WindowWin32.cpp @@ -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; } } |