[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"
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;
}