[KERNEL32]: Fix SetSystemPowerState.

svn path=/trunk/; revision=63954
This commit is contained in:
Hermès Bélusca-Maïto
2014-08-26 17:56:22 +00:00
parent 49a3d49fe5
commit 1819faad83
+2 -3
View File
@@ -87,9 +87,8 @@ SetSystemPowerState(IN BOOL fSuspend,
{
NTSTATUS Status;
Status = NtInitiatePowerAction(PowerActionSleep,
(fSuspend != FALSE) ?
PowerSystemSleeping1 : PowerSystemHibernate,
Status = NtInitiatePowerAction((fSuspend != FALSE) ? PowerActionSleep : PowerActionHibernate,
(fSuspend != FALSE) ? PowerSystemSleeping1 : PowerSystemHibernate,
fForce != TRUE,
FALSE);
if (!NT_SUCCESS(Status))