1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

shell32: Also zero-initialize the background menu.

Fixes: 063a377df4
This commit is contained in:
Zebediah Figura 2024-02-25 17:10:32 -06:00 committed by Alexandre Julliard
parent c37fea89e6
commit f7c665fd6e

View file

@ -1541,8 +1541,8 @@ HRESULT BackgroundMenu_Constructor(IShellFolder *parent, BOOL desktop, REFIID ri
ContextMenu *This;
HRESULT hr;
This = malloc(sizeof(*This));
if (!This) return E_OUTOFMEMORY;
if (!(This = calloc(1, sizeof(*This))))
return E_OUTOFMEMORY;
This->IContextMenu3_iface.lpVtbl = &BackgroundContextMenuVtbl;
This->IShellExtInit_iface.lpVtbl = &ShellExtInitVtbl;
@ -1550,10 +1550,6 @@ HRESULT BackgroundMenu_Constructor(IShellFolder *parent, BOOL desktop, REFIID ri
This->ref = 1;
This->parent = parent;
This->pidl = NULL;
This->apidl = NULL;
This->cidl = 0;
This->desktop = desktop;
if (parent) IShellFolder_AddRef(parent);