small filedlg fix.
Rein Klazes
rklazes at xs4all.nl
Sun Aug 15 03:35:19 CDT 2004
Hi,
fixes a crash saving messages in Agent 2.0.
Changelog:
dlls/commdlg : filedlg.c
Fix a crash saving a file without file name extension and
without extension filter.
Rein.
--
Rein Klazes
rklazes at xs4all.nl
-------------- next part --------------
--- wine/dlls/commdlg/filedlg.c 2004-07-22 09:50:51.000000000 +0200
+++ mywine/dlls/commdlg/filedlg.c 2004-08-15 10:16:23.000000000 +0200
@@ -1960,7 +1960,7 @@
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);
More information about the wine-patches
mailing list