Damjan Jovanovic : comdlg32: Fix a stack overflow.
Module: wine Branch: master Commit: 7ccf6c28b31ed2486600e0b23649d3fecaab0248 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7ccf6c28b31ed2486600e0b236... Author: Damjan Jovanovic <damjan.jov(a)gmail.com> Date: Fri Oct 8 07:21:23 2010 +0200 comdlg32: Fix a stack overflow. --- dlls/comdlg32/filedlg.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c index a6f6023..01b068e 100644 --- a/dlls/comdlg32/filedlg.c +++ b/dlls/comdlg32/filedlg.c @@ -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)
participants (1)
-
Alexandre Julliard