mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
fixed removing the children in ShellBrowser::InsertSubitems()
svn path=/trunk/; revision=20663
This commit is contained in:
@@ -293,6 +293,7 @@ void ShellBrowser::OnTreeItemExpanding(int idCtrl, LPNMTREEVIEW pnmtv)
|
||||
|
||||
int ShellBrowser::InsertSubitems(HTREEITEM hParentItem, Entry* entry, IShellFolder* pParentFolder)
|
||||
{
|
||||
HTREEITEM hchild, hnext;
|
||||
CONTEXT("ShellBrowser::InsertSubitems()");
|
||||
|
||||
WaitCursor wait;
|
||||
@@ -308,7 +309,8 @@ int ShellBrowser::InsertSubitems(HTREEITEM hParentItem, Entry* entry, IShellFold
|
||||
}
|
||||
|
||||
// remove old children items
|
||||
for(HTREEITEM hchild,hnext=TreeView_GetChild(_left_hwnd, hParentItem); hchild=hnext; ) {
|
||||
hnext = hchild = TreeView_GetChild(_left_hwnd, hParentItem);
|
||||
while((hchild=hnext) != NULL) {
|
||||
hnext = TreeView_GetNextSibling(_left_hwnd, hchild);
|
||||
TreeView_DeleteItem(_left_hwnd, hchild);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user