From af14108ee2b516180a49a31d06098738cf94f22c Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Mon, 6 May 2019 23:38:17 +0200 Subject: [PATCH] [POWERCFG] Do not call other pages init routines when the hibernate setting changes. This will be fixed later. --- dll/cpl/powercfg/hibernate.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dll/cpl/powercfg/hibernate.c b/dll/cpl/powercfg/hibernate.c index 38ac05bc4b4..b82cf094500 100644 --- a/dll/cpl/powercfg/hibernate.c +++ b/dll/cpl/powercfg/hibernate.c @@ -11,8 +11,8 @@ #include "powercfg.h" -BOOLEAN Pos_InitData(); -void Adv_InitDialog(); +//BOOLEAN Pos_InitData(); +//void Adv_InitDialog(); static VOID @@ -75,8 +75,9 @@ Hib_SaveData(HWND hwndDlg) if (CallNtPowerInformation(SystemReserveHiberFile, &bHibernate, sizeof(bHibernate), NULL, 0) == STATUS_SUCCESS) { - Pos_InitData(); - Adv_InitDialog(); + // FIXME: Do not call these functions directly! Post a message to the other pages instead! + // Pos_InitData(); + // Adv_InitDialog(); Hib_InitDialog(hwndDlg); return TRUE; }