maybe fix stray backslashes making it into root paths, causing stray

"Couldn't create d:\: Permission denied"
This commit is contained in:
Glenn Maynard
2004-05-23 22:11:33 +00:00
parent eb4d70ee5a
commit 3dfdc61aac
+6
View File
@@ -288,6 +288,9 @@ void RageFileManager::Mount( CString Type, CString Root, CString MountPoint )
{
LockMut( *g_Mutex );
FixSlashesInPlace( Root );
FixSlashesInPlace( MountPoint );
if( MountPoint.size() && MountPoint.Right(1) != "/" )
MountPoint += '/';
ASSERT( Root != "" );
@@ -327,6 +330,9 @@ void RageFileManager::Unmount( CString Type, CString Root, CString MountPoint )
{
LockMut( *g_Mutex );
FixSlashesInPlace( Root );
FixSlashesInPlace( MountPoint );
if( MountPoint.size() && MountPoint.Right(1) != "/" )
MountPoint += '/';