From 3389a980ea24785545e5e495ff8dc673025fa938 Mon Sep 17 00:00:00 2001 From: walker0643 <> Date: Tue, 13 Mar 2018 18:04:29 -0400 Subject: [PATCH] remove bogus check for logonui.exe. it was causing false-positives for the need to elevate --- src/lib/platform/MSWindowsWatchdog.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lib/platform/MSWindowsWatchdog.cpp b/src/lib/platform/MSWindowsWatchdog.cpp index 677e1da7..ba1890e5 100644 --- a/src/lib/platform/MSWindowsWatchdog.cpp +++ b/src/lib/platform/MSWindowsWatchdog.cpp @@ -142,10 +142,7 @@ MSWindowsWatchdog::getUserToken(LPSECURITY_ATTRIBUTES security) // elevate for the uac dialog (consent.exe) but this would be pointless, // since barrier would re-launch as non-elevated after the desk switch, // and so would be unusable with the new elevated process taking focus. - if (m_elevateProcess - || m_autoElevated - || m_session.isProcessInSession("logonui.exe", NULL)) { - + if (m_elevateProcess || m_autoElevated) { LOG((CLOG_DEBUG "getting elevated token, %s", (m_elevateProcess ? "elevation required" : "at login screen"))); @@ -155,8 +152,7 @@ MSWindowsWatchdog::getUserToken(LPSECURITY_ATTRIBUTES security) } return duplicateProcessToken(process, security); - } - else { + } else { LOG((CLOG_DEBUG "getting non-elevated token")); return m_session.getUserToken(security); }