From 096784ea5114cb5bf99151cc047d69951035d152 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Sun, 7 Feb 2021 18:54:54 -0600 Subject: Require Vista (Server 2008) SP2 or newer. #6318 --- src/engine/condition.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/engine/condition.cpp') diff --git a/src/engine/condition.cpp b/src/engine/condition.cpp index 06591567..316224db 100644 --- a/src/engine/condition.cpp +++ b/src/engine/condition.cpp @@ -187,13 +187,9 @@ extern "C" HRESULT ConditionGlobalCheck( HRESULT hr = S_OK; BOOL fSuccess = TRUE; HRESULT hrError = HRESULT_FROM_WIN32(ERROR_OLD_WIN_VERSION); - OS_VERSION osv = OS_VERSION_UNKNOWN; - DWORD dwServicePack = 0; - OsGetVersion(&osv, &dwServicePack); - - // Always error on Windows 2000 or lower - if (OS_VERSION_WIN2000 >= osv) + // Only run on Windows Vista SP2 or newer, or Windows Server 2008 SP2 or newer. + if (!::IsWindowsVistaSP2OrGreater()) { fSuccess = FALSE; } -- cgit v1.2.3-55-g6feb