[NTOS:PO]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 30 Aug 2014 08:31:28 +0000 (08:31 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 30 Aug 2014 08:31:28 +0000 (08:31 +0000)
- Enforce SeShutdownPrivilege in NtSetSystemPowerState
CORE-8476 #resolve

svn path=/trunk/; revision=63982

reactos/ntoskrnl/po/power.c

index 771ad00..cb7d2cc 100644 (file)
@@ -830,7 +830,7 @@ NtSetSystemPowerState(IN POWER_ACTION SystemAction,
         {
             /* Not granted */
             DPRINT1("ERROR: Privilege not held for shutdown\n");
-            //return STATUS_PRIVILEGE_NOT_HELD; HACK!
+            return STATUS_PRIVILEGE_NOT_HELD;
         }
 
         /* Do it as a kernel-mode caller for consistency with system state */