[POWERCFG] Do not call other pages init routines when the hibernate setting changes...
authorEric Kohl <eric.kohl@reactos.org>
Mon, 6 May 2019 21:38:17 +0000 (23:38 +0200)
committerEric Kohl <eric.kohl@reactos.org>
Mon, 6 May 2019 21:39:09 +0000 (23:39 +0200)
dll/cpl/powercfg/hibernate.c

index 38ac05b..b82cf09 100644 (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;
     }