sync with Linux
This commit is contained in:
@@ -194,6 +194,12 @@ bool MemoryCardDriverThreaded_Windows::DoOneUpdate( bool bMount, vector<UsbStora
|
||||
continue;
|
||||
}
|
||||
|
||||
if( !this->Mount(&d) )
|
||||
{
|
||||
d.SetError( "MountFailed" );
|
||||
continue;
|
||||
}
|
||||
|
||||
if( !TestWrite(d.sOsMountDir) )
|
||||
{
|
||||
d.SetError( "TestFailed" );
|
||||
@@ -210,6 +216,8 @@ bool MemoryCardDriverThreaded_Windows::DoOneUpdate( bool bMount, vector<UsbStora
|
||||
FILEMAN->Unmount( "dir", d.sOsMountDir, TEMP_MOUNT_POINT );
|
||||
}
|
||||
|
||||
this->Unmount( &d );
|
||||
|
||||
LOG->Trace( "WriteTest: %s, Name: %s", d.m_State == UsbStorageDevice::STATE_ERROR? "failed":"succeeded", d.sName.c_str() );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user