Commit c87736df authored by Ulrich Czekalla's avatar Ulrich Czekalla Committed by Alexandre Julliard

Prevent self referencing next pointer during insert.

parent febd2db8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment