Rein Klazes : comdlg32: Fix a crash in LookIn combo box WM_COMMAND message handler.
Alexandre Julliard
julliard at winehq.org
Thu Apr 23 11:27:22 CDT 2009
Module: wine
Branch: master
Commit: 17e9174076b02e7e2d3f22c5f4b01e4290ae004f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=17e9174076b02e7e2d3f22c5f4b01e4290ae004f
Author: Rein Klazes <wijn at online.nl>
Date: Thu Apr 23 08:25:13 2009 +0200
comdlg32: Fix a crash in LookIn combo box WM_COMMAND message handler.
---
dlls/comdlg32/filedlg.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c
index 4c2164d..8c8e230 100644
--- a/dlls/comdlg32/filedlg.c
+++ b/dlls/comdlg32/filedlg.c
@@ -2787,6 +2787,8 @@ static BOOL FILEDLG95_LOOKIN_OnCommand(HWND hwnd, WORD wNotifyCode)
iItem = CBGetCurSel(fodInfos->DlgInfos.hwndLookInCB);
+ if( iItem == CB_ERR) return FALSE;
+
if(!(tmpFolder = (LPSFOLDER) CBGetItemDataPtr(fodInfos->DlgInfos.hwndLookInCB,
iItem)))
return FALSE;
More information about the wine-cvs
mailing list