Michael Hoffman : powrprof: Implement IsPwrHibernateAllowed.

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


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

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

powrprof: Implement IsPwrHibernateAllowed.

---

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




More information about the wine-cvs mailing list