Commit dac0fa83 authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

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

extension filter.
parent 22442cd8
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment