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/registration.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/engine/registration.cpp') diff --git a/src/engine/registration.cpp b/src/engine/registration.cpp index d3732e74..a2ed2a0d 100644 --- a/src/engine/registration.cpp +++ b/src/engine/registration.cpp @@ -1178,20 +1178,9 @@ static HRESULT UpdateResumeMode( HKEY hkRun = NULL; LPWSTR sczResumeCommandLine = NULL; LPCWSTR sczResumeKey = REGISTRY_RUN_ONCE_KEY; - OS_VERSION osv = OS_VERSION_UNKNOWN; - DWORD dwServicePack = 0; LogId(REPORT_STANDARD, MSG_SESSION_UPDATE, pRegistration->sczRegistrationKey, LoggingResumeModeToString(resumeMode), LoggingBoolToString(fRestartInitiated), LoggingBoolToString(pRegistration->fDisableResume)); - // On Windows XP and Server 2003, write the resume information to the Run key - // instead of RunOnce. That avoids the problem that driver installation might - // trigger RunOnce commands to be executed before the reboot. - OsGetVersion(&osv, &dwServicePack); - if (osv < OS_VERSION_VISTA) - { - sczResumeKey = REGISTRY_RUN_KEY; - } - // write resume information if (hkRegistration) { -- cgit v1.2.3-55-g6feb