context menu interface pointer cleanup
Modified:
branches/lean-explorer/reactos/subsys/system/explorer/desktop/desktop.cp
p
Modified:
branches/lean-explorer/reactos/subsys/system/explorer/utility/shellclass
es.cpp
_____
Modified:
branches/lean-explorer/reactos/subsys/system/explorer/desktop/desktop.cp
p
---
branches/lean-explorer/reactos/subsys/system/explorer/desktop/desktop.cp
p 2005-05-02 20:30:29 UTC (rev 14951)
+++
branches/lean-explorer/reactos/subsys/system/explorer/desktop/desktop.cp
p 2005-05-03 08:00:23 UTC (rev 14952)
@@ -547,7 +547,8 @@
hr = pcm->InvokeCommand(&cmi);
}
- }
+ } else
+ _cm_ifs.reset();
}
pcm->Release();
_____
Modified:
branches/lean-explorer/reactos/subsys/system/explorer/utility/shellclass
es.cpp
---
branches/lean-explorer/reactos/subsys/system/explorer/utility/shellclass
es.cpp 2005-05-02 20:30:29 UTC (rev 14951)
+++
branches/lean-explorer/reactos/subsys/system/explorer/utility/shellclass
es.cpp 2005-05-03 08:00:23 UTC (rev 14952)
@@ -505,7 +505,7 @@
_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) {
@@ -552,7 +552,8 @@
hr = pcm->InvokeCommand(&cmi);
}
- }
+ } else
+ cm_ifs.reset();
}
pcm->Release();