A treeview item may be TVI_ROOT.

This commit is contained in:
Bill Medland 2001-12-11 00:15:11 +00:00 committed by Alexandre Julliard
parent a1aeeb2b05
commit 32ca21caaa
1 changed files with 2 additions and 0 deletions

View File

@ -2039,6 +2039,8 @@ TREEVIEW_GetNextItem(TREEVIEW_INFO *infoPtr, UINT which, HTREEITEM wineItem)
return (LRESULT)retval; return (LRESULT)retval;
} }
if (wineItem == TVI_ROOT) wineItem = infoPtr->root;
if (!TREEVIEW_ValidItem(infoPtr, wineItem)) if (!TREEVIEW_ValidItem(infoPtr, wineItem))
return FALSE; return FALSE;