From: Eric Kohl Date: Mon, 6 May 2019 21:38:17 +0000 (+0200) Subject: [POWERCFG] Do not call other pages init routines when the hibernate setting changes... X-Git-Tag: 0.4.14-dev~1032 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=af14108ee2b516180a49a31d06098738cf94f22c [POWERCFG] Do not call other pages init routines when the hibernate setting changes. This will be fixed later. --- 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; }