From b313df449a87f7a8344d12ed0466c3c1589d6b41 Mon Sep 17 00:00:00 2001 From: Renaud Lepage Date: Fri, 26 Aug 2005 19:05:49 +0000 Subject: [PATCH] Little forgotten line. We're bound to have loads of that for Xbox... --- stepmania/src/RageFileDriverDirectHelpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageFileDriverDirectHelpers.cpp b/stepmania/src/RageFileDriverDirectHelpers.cpp index fc4924d1c6..4d1720542b 100644 --- a/stepmania/src/RageFileDriverDirectHelpers.cpp +++ b/stepmania/src/RageFileDriverDirectHelpers.cpp @@ -98,12 +98,12 @@ static bool WinMoveFileInternal( const CString &sOldPath, const CString &sNewPat bool WinMoveFile( CString sOldPath, CString sNewPath ) { - if( WinMoveFileInternal(sOldPath, sNewPath) ) + if( WinMoveFileInternal( DoPathReplace(sOldPath), DoPathReplace(sNewPath) ) return true; if( GetLastError() != ERROR_ACCESS_DENIED ) return false; /* Try turning off the read-only bit on the file we're overwriting. */ - SetFileAttributes( sNewPath, FILE_ATTRIBUTE_NORMAL ); + SetFileAttributes( DoPathReplace(sNewPath), FILE_ATTRIBUTE_NORMAL ); return WinMoveFileInternal( DoPathReplace(sOldPath), DoPathReplace(sNewPath) ); }