We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23a100f commit 241405cCopy full SHA for 241405c
ProcessHacker/runas.c
@@ -1144,14 +1144,14 @@ INT_PTR CALLBACK PhpRunAsDlgProc(
1144
&logonType
1145
))
1146
{
1147
- ULONG sessionId = ULONG_MAX;
+ ULONG currentSessionId = ULONG_MAX;
1148
1149
- PhGetProcessSessionId(NtCurrentProcess(), &sessionId);
+ PhGetProcessSessionId(NtCurrentProcess(), ¤tSessionId);
1150
1151
if (
1152
logonType == LOGON32_LOGON_INTERACTIVE &&
1153
!context->ProcessId &&
1154
- sessionId == sessionId &&
+ sessionId == currentSessionId &&
1155
!useLinkedToken
1156
)
1157
0 commit comments