From 3ce078f0e8a83da08a72d60ff72d432b0b3d9ad9 Mon Sep 17 00:00:00 2001 From: "Jerry (Xinyu Hou)" Date: Wed, 2 Dec 2015 15:58:44 -0800 Subject: [PATCH] Fix wrong elevate information #5041 --- src/lib/platform/MSWindowsWatchdog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/platform/MSWindowsWatchdog.cpp b/src/lib/platform/MSWindowsWatchdog.cpp index 4646aa2e..11cbc7a9 100644 --- a/src/lib/platform/MSWindowsWatchdog.cpp +++ b/src/lib/platform/MSWindowsWatchdog.cpp @@ -293,7 +293,7 @@ MSWindowsWatchdog::startProcess() ZeroMemory(&sa, sizeof(SECURITY_ATTRIBUTES)); HANDLE userToken = getUserToken(&sa); - m_elevateProcess = m_autoElevated; + m_elevateProcess = m_autoElevated ? m_autoElevated : m_elevateProcess; m_autoElevated = false; // patch by Jack Zhou and Henry Tung