https://git.reactos.org/?p=reactos.git;a=commitdiff;h=af14108ee2b516180a49a3...
commit af14108ee2b516180a49a31d06098738cf94f22c Author: Eric Kohl eric.kohl@reactos.org AuthorDate: Mon May 6 23:38:17 2019 +0200 Commit: Eric Kohl eric.kohl@reactos.org CommitDate: Mon May 6 23:39:09 2019 +0200
[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 38ac05bc4b..b82cf09450 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; }