Author: gadamopoulos
Date: Mon Feb 13 15:04:03 2017
New Revision: 73788
URL:
http://svn.reactos.org/svn/reactos?rev=73788&view=rev
Log:
[BROWSEUI] -Fix a couple of cases where the tree view can cause a crash.
Modified:
trunk/reactos/dll/win32/browseui/explorerband.cpp
Modified: trunk/reactos/dll/win32/browseui/explorerband.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/browseui/explore…
==============================================================================
--- trunk/reactos/dll/win32/browseui/explorerband.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/browseui/explorerband.cpp [iso-8859-1] Mon Feb 13 15:04:03
2017
@@ -358,10 +358,12 @@
{
/* 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 @@
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
{