diff --git a/reactos/dll/win32/kernel32/client/power.c b/reactos/dll/win32/kernel32/client/power.c index 7864221f378..745354e35b4 100644 --- a/reactos/dll/win32/kernel32/client/power.c +++ b/reactos/dll/win32/kernel32/client/power.c @@ -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))