Skip to content

Commit 241405c

Browse files
committed
Fix runas regression
1 parent 23a100f commit 241405c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ProcessHacker/runas.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,14 +1144,14 @@ INT_PTR CALLBACK PhpRunAsDlgProc(
11441144
&logonType
11451145
))
11461146
{
1147-
ULONG sessionId = ULONG_MAX;
1147+
ULONG currentSessionId = ULONG_MAX;
11481148

1149-
PhGetProcessSessionId(NtCurrentProcess(), &sessionId);
1149+
PhGetProcessSessionId(NtCurrentProcess(), &currentSessionId);
11501150

11511151
if (
11521152
logonType == LOGON32_LOGON_INTERACTIVE &&
11531153
!context->ProcessId &&
1154-
sessionId == sessionId &&
1154+
sessionId == currentSessionId &&
11551155
!useLinkedToken
11561156
)
11571157
{

0 commit comments

Comments
 (0)