mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 12:23:31 +00:00
[KERNEL32]: Fix SetSystemPowerState.
svn path=/trunk/; revision=63954
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user