Skip to content
Snippets Groups Projects
Commit c719e35b authored by Pierre Mageau's avatar Pierre Mageau Committed by Alexandre Julliard
Browse files

Clicking the combo box would cause a crash if it was empty.

parent c0da44e4
No related branches found
No related tags found
No related merge requests found
......@@ -1377,7 +1377,7 @@ static BOOL FILEDLG95_FILETYPE_OnCommand(HWND hwnd, WORD wNotifyCode)
lpstrFilter = (LPSTR) CBGetItemDataPtr(fodInfos->DlgInfos.hwndFileTypeCB,
iItem);
if(lpstrFilter)
if((INT)lpstrFilter != CB_ERR)
{
fodInfos->ShellInfos.lpstrCurrentFilter = MemAlloc((strlen(lpstrFilter)+1)*2);
lstrcpyAtoW(fodInfos->ShellInfos.lpstrCurrentFilter,(LPSTR)strlwr((LPSTR)lpstrFilter));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment