projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77cc773
)
[NTOS:PO]
author
Thomas Faber
<thomas.faber@reactos.org>
Sat, 30 Aug 2014 08:31:28 +0000
(08:31 +0000)
committer
Thomas 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
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/po/power.c
b/reactos/ntoskrnl/po/power.c
index
771ad00
..
cb7d2cc
100644
(file)
--- a/
reactos/ntoskrnl/po/power.c
+++ b/
reactos/ntoskrnl/po/power.c
@@
-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 */