https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a65a2609196622f012275…
commit a65a2609196622f012275316b7f9c2e244667975
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sun May 12 23:52:08 2019 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sun May 12 23:52:08 2019 +0200
[POWERCFG] Show the hibernate page only if the S4 power state is available
---
dll/cpl/powercfg/powercfg.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dll/cpl/powercfg/powercfg.c b/dll/cpl/powercfg/powercfg.c
index 14f2e9ac49..f9c7b9f355 100644
--- a/dll/cpl/powercfg/powercfg.c
+++ b/dll/cpl/powercfg/powercfg.c
@@ -130,7 +130,10 @@ Applet1(HWND hwnd, UINT uMsg, LPARAM wParam, LPARAM lParam)
InitPropSheetPage(&psh, IDD_POWERSCHEMESPAGE_AC, PowerSchemesDlgProc);
}
InitPropSheetPage(&psh, IDD_PROPPAGEADVANCED, AdvancedDlgProc);
- InitPropSheetPage(&psh, IDD_PROPPAGEHIBERNATE, HibernateDlgProc);
+ if (spc.SystemS4)
+ {
+ InitPropSheetPage(&psh, IDD_PROPPAGEHIBERNATE, HibernateDlgProc);
+ }
/* Load additional pages provided by shell extensions */
hpsxa = SHCreatePropSheetExtArray(HKEY_LOCAL_MACHINE, REGSTR_PATH_CONTROLSFOLDER
TEXT("\\Power"), MAX_POWER_PAGES - psh.nPages);