mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
context menu interface pointer cleanup
svn path=/trunk/; revision=14954
This commit is contained in:
@@ -643,7 +643,8 @@ HRESULT DesktopShellView::DoDesktopContextMenu(int x, int y)
|
||||
|
||||
hr = pcm->InvokeCommand(&cmi);
|
||||
}
|
||||
}
|
||||
} else
|
||||
_cm_ifs.reset();
|
||||
}
|
||||
|
||||
pcm->Release();
|
||||
|
||||
@@ -509,7 +509,7 @@ IContextMenu* CtxMenuInterfaces::query_interfaces(IContextMenu* pcm1)
|
||||
_pctxmenu3 = (LPCONTEXTMENU3)pcm;
|
||||
else
|
||||
#endif
|
||||
if (pcm1->QueryInterface (IID_IContextMenu2, (void**)&pcm) == NOERROR)
|
||||
if (pcm1->QueryInterface(IID_IContextMenu2, (void**)&pcm) == NOERROR)
|
||||
_pctxmenu2 = (LPCONTEXTMENU2)pcm;
|
||||
|
||||
if (pcm) {
|
||||
@@ -556,7 +556,8 @@ HRESULT ShellFolderContextMenu(IShellFolder* shell_folder, HWND hwndParent, int
|
||||
|
||||
hr = pcm->InvokeCommand(&cmi);
|
||||
}
|
||||
}
|
||||
} else
|
||||
cm_ifs.reset();
|
||||
}
|
||||
|
||||
pcm->Release();
|
||||
|
||||
Reference in New Issue
Block a user