mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 20:55:16 +00:00
[BROWSEUI] -Fix a couple of cases where the tree view can cause a crash.
svn path=/trunk/; revision=73788
This commit is contained in:
parent
126bbfdb97
commit
a5ad497158
|
@ -358,10 +358,12 @@ BOOL CExplorerBand::OnTreeItemDeleted(LPNMTREEVIEW pnmtv)
|
|||
{
|
||||
/* Destroy memory associated to our node */
|
||||
NodeInfo* ptr = GetNodeInfo(pnmtv->itemNew.hItem);
|
||||
|
||||
ILFree(ptr->relativePidl);
|
||||
ILFree(ptr->absolutePidl);
|
||||
delete ptr;
|
||||
if (ptr)
|
||||
{
|
||||
ILFree(ptr->relativePidl);
|
||||
ILFree(ptr->absolutePidl);
|
||||
delete ptr;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -1511,7 +1513,10 @@ HRESULT STDMETHODCALLTYPE CExplorerBand::DragOver(DWORD glfKeyState, POINTL pt,
|
|||
hr = pDropTarget->DragEnter(pCurObject, glfKeyState, pt, pdwEffect);
|
||||
childTargetNode = info.hItem;
|
||||
}
|
||||
hr = pDropTarget->DragOver(glfKeyState, pt, pdwEffect);
|
||||
if (pDropTarget)
|
||||
{
|
||||
hr = pDropTarget->DragOver(glfKeyState, pt, pdwEffect);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue