Author: tfaber
Date: Sat Aug 30 08:31:28 2014
New Revision: 63982
URL: http://svn.reactos.org/svn/reactos?rev=63982&view=rev
Log:
[NTOS:PO]
- Enforce SeShutdownPrivilege in NtSetSystemPowerState
CORE-8476 #resolve
Modified:
trunk/reactos/ntoskrnl/po/power.c
Modified: trunk/reactos/ntoskrnl/po/power.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/po/power.c?rev=63…
==============================================================================
--- trunk/reactos/ntoskrnl/po/power.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/po/power.c [iso-8859-1] Sat Aug 30 08:31:28 2014
@@ -830,7 +830,7 @@
{
/* 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 */