Author: hbelusca
Date: Tue Aug 26 17:56:22 2014
New Revision: 63954
URL:
http://svn.reactos.org/svn/reactos?rev=63954&view=rev
Log:
[KERNEL32]: Fix SetSystemPowerState.
Modified:
trunk/reactos/dll/win32/kernel32/client/power.c
Modified: trunk/reactos/dll/win32/kernel32/client/power.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/power.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/power.c [iso-8859-1] Tue Aug 26 17:56:22 2014
@@ -87,9 +87,8 @@
{
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))