Michael Hoffman : powrprof: Implement IsPwrShutdownAllowed.

Alexandre Julliard julliard at winehq.org
Thu Apr 17 07:38:41 CDT 2008


Module: wine
Branch: master
Commit: c189b5f9e2e5b146ca8ec25deba04a4aa2a2a52d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c189b5f9e2e5b146ca8ec25deba04a4aa2a2a52d

Author: Michael Hoffman <blackdragon1157 at gmail.com>
Date:   Wed Apr 16 17:59:52 2008 -0400

powrprof: Implement IsPwrShutdownAllowed.

---

 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 58a7919..7d3b86e 100644
--- a/dlls/powrprof/powrprof.c
+++ b/dlls/powrprof/powrprof.c
@@ -216,11 +216,9 @@ BOOLEAN WINAPI IsPwrHibernateAllowed(VOID)
 
 BOOLEAN WINAPI IsPwrShutdownAllowed(VOID)
 {
-   /* FIXME: See note #2 */
    SYSTEM_POWER_CAPABILITIES PowerCaps;
-   FIXME("() stub!\n");
    NtPowerInformation(SystemPowerCapabilities, NULL, 0, &PowerCaps, sizeof(PowerCaps));
-   return FALSE;
+   return PowerCaps.SystemS5;
 }
 
 BOOLEAN WINAPI IsPwrSuspendAllowed(VOID)




More information about the wine-cvs mailing list