minor cleanups

This commit is contained in:
Glenn Maynard
2005-02-05 23:56:23 +00:00
parent 9f15f43462
commit bc3f8803c3
2 changed files with 4 additions and 7 deletions
@@ -19,11 +19,8 @@ MemoryCardDriverThreaded_Windows::~MemoryCardDriverThreaded_Windows()
{
}
typedef const CString& CCStringRef;
static bool TestReady( CCStringRef sDrive )
static bool TestReady( const CString &sDrive )
{
// TODO: Use RageFileDirect here to detect ready state?
TCHAR szVolumeNameBuffer[MAX_PATH];
DWORD dwVolumeSerialNumber;
DWORD dwMaximumComponentLength;
@@ -41,10 +38,9 @@ static bool TestReady( CCStringRef sDrive )
sizeof(szFileSystemNameBuffer) );
}
static bool TestWrite( CCStringRef sDrive )
static bool TestWrite( const CString &sDrive )
{
// Try to write a file.
// TODO: Can we use RageFile for this?
CString sFile = sDrive + "temp";
FILE* fp = fopen( sFile, "w" );
if( fp == NULL )