Skip to content

Commit

Permalink
Attempt to patch #395
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmaehl committed Mar 3, 2024
1 parent 7943d8f commit 334780c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion MSEdgeRedirect.au3
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,10 @@ Func ReactiveMode($bHide = False)

Local $sRegex
Local $iSIHost = ProcessExists("sihost.exe")
Local $bHavePath = True
Local $aProcessList
Local $sCommandline
Local $sProcessPath
Local $sCommandline

If _GetSettingValue("NoApps") Then
$sRegex = "(?i).*(microsoft\-edge|app\-id).*"
Expand All @@ -460,8 +462,12 @@ Func ReactiveMode($bHide = False)
Else
ProcessClose($aProcessList[1][0])
$sCommandline = _WinAPI_GetProcessCommandLine($aProcessList[1][0])
$sProcessPath = _WinAPI_GetProcessFileName($aProcessList[1][0])
If @error Then $bHavePath = False
If StringRegExp($sCommandline, $sRegex) Then
_DecodeAndRun(Default, $sCommandline)
Elseif $bHavePath = True Then
_SafeRun($sProcessPath, $sCommandline)
EndIf
EndIf

Expand Down

0 comments on commit 334780c

Please sign in to comment.