comdlg32: fix a crash in LookIn combo box WM_COMMAND message handler
Rein Klazes
wijn at online.nl
Thu Apr 23 01:25:13 CDT 2009
Fix for bug #18155
---
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;
--
1.6.2.1
More information about the wine-patches
mailing list