Skip to content

Commit

Permalink
Actually Patch Boot check
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmaehl committed Jun 25, 2021
1 parent 1e35397 commit ded7fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WhyNotWin11.au3
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Func Main()
GUISetState(@SW_SHOW, $hGUI)

RunWait("powershell -Command $env:firmware_type | Out-File -FilePath .\WhyNot.txt", "", @SW_HIDE)
If Not StringInStr(FileReadLine(".\WhyNot.txt", 1), "Legacy") Then
If Not StringInStr(FileRead(".\WhyNot.txt"), "Legacy") Then
GUICtrlSetData($hCheck[0][0], "OK")
GUICtrlSetBkColor($hCheck[0][0], 0x4CC355)
GUICtrlSetData($hCheck[0][2], FileReadLine(".\WhyNot.txt", 1));"Secure Boot Detected as Enabled")
Expand Down

0 comments on commit ded7fb8

Please sign in to comment.