mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00: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:
parent
835438f614
commit
231ac99414
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue