parent
c37fea89e6
commit
f7c665fd6e
1 changed files with 2 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue