https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b5e6280a7247b7838777a0...
commit b5e6280a7247b7838777a095665189ffbda56412 Author: Eric Kohl eric.kohl@reactos.org AuthorDate: Sun May 5 17:00:57 2019 +0200 Commit: Eric Kohl eric.kohl@reactos.org CommitDate: Sun May 5 17:05:59 2019 +0200
[POWERCFG] Really fix the power schemes exceptions! --- dll/cpl/powercfg/powershemes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dll/cpl/powercfg/powershemes.c b/dll/cpl/powercfg/powershemes.c index 7654f1758c..dfebc9606e 100644 --- a/dll/cpl/powercfg/powershemes.c +++ b/dll/cpl/powercfg/powershemes.c @@ -715,8 +715,8 @@ PowerSchemesDlgProc( { case WM_INITDIALOG: pPageData = (PPOWER_SCHEMES_PAGE_DATA)HeapAlloc(GetProcessHeap(), - 0, - sizeof(PPOWER_SCHEMES_PAGE_DATA)); + HEAP_ZERO_MEMORY, + sizeof(POWER_SCHEMES_PAGE_DATA)); SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)pPageData);
BuildSchemesList(pPageData);