Skip to content

Commit 32e1614

Browse files
committed
Fix Shutdown->Restart to Firmware option failing to create OsIndications
1 parent 5a76727 commit 32e1614

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ProcessHacker/actions.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,12 @@ BOOLEAN PhUiRestartComputer(
838838
&osIndicationsAttributes
839839
);
840840

841-
if (NT_SUCCESS(status))
841+
if (status == STATUS_VARIABLE_NOT_FOUND)
842+
{
843+
osIndicationsAttributes = EFI_VARIABLE_NON_VOLATILE;
844+
}
845+
846+
if (NT_SUCCESS(status) || status == STATUS_VARIABLE_NOT_FOUND)
842847
{
843848
osIndicationsValue |= EFI_OS_INDICATIONS_BOOT_TO_FW_UI;
844849

0 commit comments

Comments
 (0)