From 6ce359752afac0d3d70c2cf5fabd7d92859564ee Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Thu, 12 Mar 2020 16:22:04 +1100 Subject: Retry ElevationElevate once if we think it failed due to antivirus interference. --- src/engine/elevation.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/engine/elevation.cpp') diff --git a/src/engine/elevation.cpp b/src/engine/elevation.cpp index 1b9336e0..0b96c300 100644 --- a/src/engine/elevation.cpp +++ b/src/engine/elevation.cpp @@ -291,6 +291,10 @@ extern "C" HRESULT ElevationElevate( LogId(REPORT_STANDARD, MSG_LAUNCH_ELEVATED_ENGINE_SUCCESS); hr = PipeWaitForChildConnect(&pEngineState->companionConnection); + if (HRESULT_FROM_WIN32(ERROR_NO_DATA) == hr) + { + hr = E_SUSPECTED_AV_INTERFERENCE; + } ExitOnFailure(hr, "Failed to connect to elevated child process."); LogId(REPORT_STANDARD, MSG_CONNECT_TO_ELEVATED_ENGINE_SUCCESS); -- cgit v1.2.3-55-g6feb