comdlg32: Fix a stack overflow.

oldstable
Damjan Jovanovic 2010-10-08 07:21:23 +02:00 committed by Alexandre Julliard
parent 6f2513d39a
commit 7ccf6c28b3
1 changed files with 3 additions and 0 deletions

View File

@ -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)