[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:
Hermès Bélusca-Maïto 2023-12-16 15:25:52 +01:00
parent 835438f614
commit 231ac99414
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -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);