Commit f7c665fd authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

shell32: Also zero-initialize the background menu.

Fixes: 063a377d
parent c37fea89
......@@ -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);
......
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