[POWERCFG] Really fix the power schemes exceptions!

This commit is contained in:
Eric Kohl 2019-05-05 17:00:57 +02:00
parent 5d20d512be
commit b5e6280a72

View file

@ -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);