context menu interface pointer cleanup

svn path=/trunk/; revision=14954
This commit is contained in:
Martin Fuchs
2005-05-03 08:03:46 +00:00
parent c853c0b6e3
commit 7bb756385c
2 changed files with 5 additions and 3 deletions
@@ -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();