#include "wx/dynarray.h"
#include "wx/log.h"
#include "wx/config.h"
+#include "wx/file.h"
#include "wx/msw/iniconf.h"
wxString strFile = szBuf;
strFile << '\\' << m_strLocalFilename;
- if ( !wxRemoveFile(strFile) ) {
+ if ( wxFile::Exists(strFile) && !wxRemoveFile(strFile) ) {
wxLogSysError(_("Can't delete the INI file '%s'"), strFile.c_str());
return FALSE;
}