Damjan Jovanovic : comdlg32: Fix a stack overflow.
Alexandre Julliard
julliard at winehq.org
Fri Oct 8 12:38:06 CDT 2010
Module: wine
Branch: master
Commit: 7ccf6c28b31ed2486600e0b23649d3fecaab0248
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7ccf6c28b31ed2486600e0b23649d3fecaab0248
Author: Damjan Jovanovic <damjan.jov at 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)
More information about the wine-cvs
mailing list