A treeview item may be TVI_ROOT.
This commit is contained in:
parent
a1aeeb2b05
commit
32ca21caaa
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue