maybe fix stray backslashes making it into root paths, causing stray
"Couldn't create d:\: Permission denied"
This commit is contained in:
@@ -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 += '/';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user