mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:42:58 +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)
|
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->itemOld.hItem);
|
||||||
if (ptr)
|
if (ptr)
|
||||||
{
|
{
|
||||||
ILFree(ptr->relativePidl);
|
ILFree(ptr->relativePidl);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue