Skip to content

Commit

Permalink
Fix foreground regression 5cd2d73 #2402
Browse files Browse the repository at this point in the history
  • Loading branch information
dmex committed Jan 29, 2025
1 parent 8edab43 commit b222e6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SystemInformer/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ static BOOLEAN NTAPI PhpPreviousInstancesCallback(
_In_ PVOID Context
)
{
static PH_STRINGREF objectNameSr = PH_STRINGREF_INIT(L"SiMutant_");
static CONST PH_STRINGREF objectNameSr = PH_STRINGREF_INIT(L"SiMutant_");
HANDLE objectHandle;
UNICODE_STRING objectName;
OBJECT_ATTRIBUTES objectAttributes;
Expand Down Expand Up @@ -510,8 +510,8 @@ static BOOLEAN NTAPI PhpPreviousInstancesCallback(
if (!PhEqualSid(tokenUser.User.Sid, PhGetOwnTokenAttributes().TokenSid))
goto CleanupExit;

AllowSetForegroundWindow(HandleToUlong(basicInfo.UniqueProcessId));
PhConsoleSetForeground(processHandle, TRUE);
//AllowSetForegroundWindow(HandleToUlong(basicInfo.UniqueProcessId));
//PhConsoleSetForeground(processHandle, TRUE);

// Try to locate the window a few times because some users reported that it might not yet have been created. (dmex)
do
Expand Down

0 comments on commit b222e6e

Please sign in to comment.