From 1cfaa915709e14373cd303e7dfccea2fba97ac83 Mon Sep 17 00:00:00 2001 From: Michael Hoffman Date: Wed, 16 Apr 2008 18:00:33 -0400 Subject: [PATCH] powrprof: Implement IsPwrSuspendAllowed. --- dlls/powrprof/powrprof.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/powrprof/powrprof.c b/dlls/powrprof/powrprof.c index e17acc92f5f..58a79199804 100644 --- a/dlls/powrprof/powrprof.c +++ b/dlls/powrprof/powrprof.c @@ -225,11 +225,9 @@ BOOLEAN WINAPI IsPwrShutdownAllowed(VOID) BOOLEAN WINAPI IsPwrSuspendAllowed(VOID) { - /* FIXME: See note #2 */ SYSTEM_POWER_CAPABILITIES PowerCaps; - FIXME("() stub!\n"); NtPowerInformation(SystemPowerCapabilities, NULL, 0, &PowerCaps, sizeof(PowerCaps)); - return FALSE; + return PowerCaps.SystemS1 && PowerCaps.SystemS2 && PowerCaps.SystemS3; } BOOLEAN WINAPI ReadGlobalPwrPolicy(PGLOBAL_POWER_POLICY pGlobalPowerPolicy)