Commit fc5bd1b4 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

regedit: Replace a HeapAlloc() HEAP_ZERO_MEMORY call in framewnd.c.

parent 4c25f649
......@@ -367,7 +367,10 @@ static void ExportRegistryFile_StoreSelection(HWND hdlg, OPENFILENAMEW *pOpenFil
SendDlgItemMessageW(hdlg, IDC_EXPORT_PATH, WM_GETTEXT, len+1, pOpenFileName->lCustData);
}
else
pOpenFileName->lCustData = (LPARAM)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(WCHAR));
{
pOpenFileName->lCustData = (LPARAM)heap_xalloc(sizeof(WCHAR));
*(WCHAR *)pOpenFileName->lCustData = 0;
}
}
static UINT_PTR CALLBACK ExportRegistryFile_OFNHookProc(HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment