Fix wrong elevate information #5041

This commit is contained in:
Jerry (Xinyu Hou) 2015-12-02 15:58:44 -08:00 committed by Xinyu Hou
parent 70104190e4
commit 3ce078f0e8
1 changed files with 1 additions and 1 deletions

View File

@ -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