X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe048d7736f6a50a3b71c6eae8a560f268b2e4f1..c3e57ac4ac9222d84ac208a493b57fb24e474a6a:/src/msw/filedlg.cpp diff --git a/src/msw/filedlg.cpp b/src/msw/filedlg.cpp index b42c276494..b788f8a7cf 100644 --- a/src/msw/filedlg.cpp +++ b/src/msw/filedlg.cpp @@ -331,7 +331,13 @@ static bool ShowCommFileDialog(OPENFILENAME *of, long style) } #endif // wxTRY_SMALLER_OPENFILENAME - if ( !success && errCode == FNERR_INVALIDFILENAME && of->lpstrFile[0] ) + if ( !success && + // FNERR_INVALIDFILENAME is not defined under CE (besides we don't + // use CommDlgExtendedError() there anyhow) +#ifndef __WXWINCE__ + errCode == FNERR_INVALIDFILENAME && +#endif // !__WXWINCE__ + of->lpstrFile[0] ) { // this can happen if the default file name is invalid, try without it // now