wxWidgets/MSW: Likely fix for "cannot commit changes to pcsx2.ini" type errors.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3877 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2010-10-05 14:11:22 +00:00
parent c7850c2fad
commit dbf1a1c7aa
1 changed files with 4 additions and 0 deletions

View File

@ -1179,6 +1179,9 @@ wxRenameFile(const wxString& file1, const wxString& file2, bool overwrite)
return false;
}
#ifdef __WXMSW__
return ::MoveFileEx(file1,file2, MOVEFILE_REPLACE_EXISTING) != 0;
#else
#if !defined(__WXWINCE__) && !defined(__WXPALMOS__)
// Normal system call
if ( wxRename (file1, file2) == 0 )
@ -1192,6 +1195,7 @@ wxRenameFile(const wxString& file1, const wxString& file2, bool overwrite)
}
// Give up
return false;
#endif
}
bool wxRemoveFile(const wxString& file)