mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 23:55:07 +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 */
|
/* Destroy memory associated to our node */
|
||||||
NodeInfo* ptr = GetNodeInfo(pnmtv->itemNew.hItem);
|
NodeInfo* ptr = GetNodeInfo(pnmtv->itemNew.hItem);
|
||||||
|
if (ptr)
|
||||||
ILFree(ptr->relativePidl);
|
{
|
||||||
ILFree(ptr->absolutePidl);
|
ILFree(ptr->relativePidl);
|
||||||
delete ptr;
|
ILFree(ptr->absolutePidl);
|
||||||
|
delete ptr;
|
||||||
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1511,7 +1513,10 @@ HRESULT STDMETHODCALLTYPE CExplorerBand::DragOver(DWORD glfKeyState, POINTL pt,
|
||||||
hr = pDropTarget->DragEnter(pCurObject, glfKeyState, pt, pdwEffect);
|
hr = pDropTarget->DragEnter(pCurObject, glfKeyState, pt, pdwEffect);
|
||||||
childTargetNode = info.hItem;
|
childTargetNode = info.hItem;
|
||||||
}
|
}
|
||||||
hr = pDropTarget->DragOver(glfKeyState, pt, pdwEffect);
|
if (pDropTarget)
|
||||||
|
{
|
||||||
|
hr = pDropTarget->DragOver(glfKeyState, pt, pdwEffect);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue