mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
Prevent self referencing next pointer during insert.
This commit is contained in:
parent
febd2db82e
commit
c87736df1f
1 changed files with 1 additions and 0 deletions
|
@ -1721,6 +1721,7 @@ TREEVIEW_InsertItemA (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
|||
|
||||
switch ((DWORD) ptdi->hInsertAfter) {
|
||||
case (DWORD) TVI_FIRST:
|
||||
if (sibItem==wineItem) break;
|
||||
if (wineItem->parent) {
|
||||
wineItem->sibling=parentItem->firstChild;
|
||||
parentItem->firstChild=(HTREEITEM)iItem;
|
||||
|
|
Loading…
Reference in a new issue