Commit 7ccf6c28 authored by Damjan Jovanovic's avatar Damjan Jovanovic Committed by Alexandre Julliard

comdlg32: Fix a stack overflow.

parent 6f2513d3
......@@ -3349,6 +3349,9 @@ static int FILEDLG95_LOOKIN_InsertItemAfterParent(HWND hwnd,LPITEMIDLIST pidl)
TRACE("\n");
if (pidl == pidlParent)
return -1;
iParentPos = FILEDLG95_LOOKIN_SearchItem(hwnd,(WPARAM)pidlParent,SEARCH_PIDL);
if(iParentPos < 0)
......
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