Fix a crash saving a file without file name extension and without

extension filter.
This commit is contained in:
Rein Klazes 2004-08-16 19:57:30 +00:00 committed by Alexandre Julliard
parent 22442cd880
commit dac0fa832c

View file

@ -1960,7 +1960,7 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
if (lpstrFilter != (LPWSTR)CB_ERR) /* control is not empty */
filterExt = PathFindExtensionW(lpstrFilter);
if ( *filterExt ) /* attach the file extension from file type filter*/
if ( filterExt && *filterExt ) /* attach the file extension from file type filter*/
strcatW(lpstrPathAndFile, filterExt + 1);
else if ( fodInfos->defext ) /* attach the default file extension*/
strcatW(lpstrPathAndFile, fodInfos->defext);