mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[BROWSEUI] Fix item deletion in CExplorerBand::OnTreeItemDeleted().
Addendum to commit 1b634b38e (r73706)
CORE-10838
The TVN_DELETEITEM notification sends the info about the item to be
deleted in the itemOld member of the NMTREEVIEW structure, and not in
the itemNew one!
This commit is contained in:
@@ -347,7 +347,7 @@ BOOL CExplorerBand::OnTreeItemExpanding(LPNMTREEVIEW pnmtv)
|
||||
BOOL CExplorerBand::OnTreeItemDeleted(LPNMTREEVIEW pnmtv)
|
||||
{
|
||||
/* Destroy memory associated to our node */
|
||||
NodeInfo* ptr = GetNodeInfo(pnmtv->itemNew.hItem);
|
||||
NodeInfo* ptr = GetNodeInfo(pnmtv->itemOld.hItem);
|
||||
if (ptr)
|
||||
{
|
||||
ILFree(ptr->relativePidl);
|
||||
|
||||
Reference in New Issue
Block a user