comdlg32: Fix a crash in LookIn combo box WM_COMMAND message handler.

This commit is contained in:
Rein Klazes 2009-04-23 08:25:13 +02:00 committed by Alexandre Julliard
parent fd80a7b7c4
commit 17e9174076
1 changed files with 2 additions and 0 deletions

View File

@ -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;