Module: wine Branch: master Commit: 1cfaa915709e14373cd303e7dfccea2fba97ac83 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1cfaa915709e14373cd303e7df...
Author: Michael Hoffman blackdragon1157@gmail.com Date: Wed Apr 16 18:00:33 2008 -0400
powrprof: Implement IsPwrSuspendAllowed.
---
dlls/powrprof/powrprof.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/powrprof/powrprof.c b/dlls/powrprof/powrprof.c index e17acc9..58a7919 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)