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 e4550e0 commit 4bdcb52Copy full SHA for 4bdcb52
ProcessHacker/actions.c
@@ -773,6 +773,18 @@ BOOLEAN PhUiRestartComputer(
773
break;
774
}
775
776
+ if (!NT_SUCCESS(PhAdjustPrivilege(NULL, SE_SYSTEM_ENVIRONMENT_PRIVILEGE, TRUE)))
777
+ {
778
+ PhShowMessage2(
779
+ WindowHandle,
780
+ TDCBF_OK_BUTTON,
781
+ TD_ERROR_ICON,
782
+ L"Unable to restart to firmware options.",
783
+ L"Make sure Process Hacker is running with administrative privileges."
784
+ );
785
+ break;
786
+ }
787
+
788
if (!PhIsFirmwareSupported())
789
{
790
PhShowMessage2(
0 commit comments