This commit is contained in:
Glenn Maynard
2003-12-10 09:27:41 +00:00
parent 11870a6072
commit f4a3640b0d
+3 -2
View File
@@ -19,8 +19,9 @@
void FixSlashesInPlace( CString &sPath ) void FixSlashesInPlace( CString &sPath )
{ {
sPath.Replace( "/", SLASH ); for( unsigned i = 0; i < sPath.size(); ++i )
sPath.Replace( "\\", SLASH ); if( sPath[i] == '\\' )
sPath[i] = '/';
} }
CString FixSlashes( CString sPath ) CString FixSlashes( CString sPath )