[POWERCFG] Do not call other pages init routines when the hibernate setting changes. This will be fixed later.

This commit is contained in:
Eric Kohl 2019-05-06 23:38:17 +02:00
parent 3da616a918
commit af14108ee2

View file

@ -11,8 +11,8 @@
#include "powercfg.h" #include "powercfg.h"
BOOLEAN Pos_InitData(); //BOOLEAN Pos_InitData();
void Adv_InitDialog(); //void Adv_InitDialog();
static VOID static VOID
@ -75,8 +75,9 @@ Hib_SaveData(HWND hwndDlg)
if (CallNtPowerInformation(SystemReserveHiberFile, &bHibernate, sizeof(bHibernate), NULL, 0) == STATUS_SUCCESS) if (CallNtPowerInformation(SystemReserveHiberFile, &bHibernate, sizeof(bHibernate), NULL, 0) == STATUS_SUCCESS)
{ {
Pos_InitData(); // FIXME: Do not call these functions directly! Post a message to the other pages instead!
Adv_InitDialog(); // Pos_InitData();
// Adv_InitDialog();
Hib_InitDialog(hwndDlg); Hib_InitDialog(hwndDlg);
return TRUE; return TRUE;
} }