diff options
author | Arnon Gilboa <agilboa@redhat.com> | 2012-11-22 13:15:02 +0200 |
---|---|---|
committer | Arnon Gilboa <agilboa@redhat.com> | 2012-11-25 10:11:59 +0200 |
commit | e5c363b8417d2063393a5e6e58cf413ac5e1aabb (patch) | |
tree | fedd144041755b2a300ebb49badd8561135b9abf /vdservice | |
parent | 7330f5132aa4c706268775828742b9f2cc4c18f8 (diff) |
vdservice: support Windows 8 & Server 2012
vdagent was ok, but vdservice required adding these to the version check.
Both are handled as the rest of the Win7 class.
Tested on Win8x64.
Diffstat (limited to 'vdservice')
-rw-r--r-- | vdservice/vdservice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vdservice/vdservice.cpp b/vdservice/vdservice.cpp index 8f12317..b2448e7 100644 --- a/vdservice/vdservice.cpp +++ b/vdservice/vdservice.cpp @@ -121,7 +121,7 @@ VDService* VDService::get() enum SystemVersion { SYS_VER_UNSUPPORTED, SYS_VER_WIN_XP_CLASS, // also Server 2003/R2 - SYS_VER_WIN_7_CLASS, // also Server 2008/R2 & Vista + SYS_VER_WIN_7_CLASS, // also Windows 8, Server 2012, Server 2008/R2 & Vista }; int supported_system_version() @@ -136,7 +136,7 @@ int supported_system_version() } if (osvi.dwMajorVersion == 5 && (osvi.dwMinorVersion == 1 || osvi.dwMinorVersion == 2)) { return SYS_VER_WIN_XP_CLASS; - } else if (osvi.dwMajorVersion == 6 && (osvi.dwMinorVersion == 0 || osvi.dwMinorVersion == 1)) { + } else if (osvi.dwMajorVersion == 6 && osvi.dwMinorVersion >= 0 && osvi.dwMinorVersion <= 2) { return SYS_VER_WIN_7_CLASS; } return 0; |