X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/466e87bd8c80937ca21e8471dc45ed49480675b6..c6a6bbbf637a5a580b7ab182483d27522f5e3189:/src/common/fileconf.cpp?ds=sidebyside diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index 1503ece182..f70b974c3c 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -344,7 +344,7 @@ void wxFileConfig::Init() // It's not an error if (one of the) file(s) doesn't exist. // parse the global file - if ( m_fnGlobalFile.FileExists() ) + if ( m_fnGlobalFile.IsOk() && m_fnGlobalFile.FileExists() ) { wxTextFile fileGlobal(m_fnGlobalFile.GetFullPath()); @@ -360,7 +360,7 @@ void wxFileConfig::Init() } // parse the local file - if ( m_fnLocalFile.FileExists() ) + if ( m_fnLocalFile.IsOk() && m_fnLocalFile.FileExists() ) { wxTextFile fileLocal(m_fnLocalFile.GetFullPath()); if ( fileLocal.Open(*m_conv/*ignored in ANSI build*/) )