Module: wine Branch: stable Commit: ea3f9bdb84337575fc68dbf42d26474c6d6ed374 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ea3f9bdb84337575fc68dbf42d...
Author: Damjan Jovanovic damjan.jov@gmail.com Date: Fri Oct 8 07:21:23 2010 +0200
comdlg32: Fix a stack overflow. (cherry picked from commit 7ccf6c28b31ed2486600e0b23649d3fecaab0248)
---
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 ae357f6..c689584 100644 --- a/dlls/comdlg32/filedlg.c +++ b/dlls/comdlg32/filedlg.c @@ -3129,6 +3129,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)