fix for confusingly similar error codes

do log when the file already exists
This commit is contained in:
Glenn Maynard
2005-12-24 03:16:20 +00:00
parent b923d82f90
commit 635434ea17
@@ -47,10 +47,10 @@ bool MemoryCardDriverThreaded_Windows::TestWrite( UsbStorageDevice* pDevice )
if( hFile == INVALID_HANDLE_VALUE )
{
DWORD iError = GetLastError();
if( iError == ERROR_ALREADY_EXISTS )
continue;
LOG->Warn( werr_ssprintf(iError, "Couldn't write to %s", pDevice->sOsMountDir.c_str()) );
if( iError == ERROR_FILE_EXISTS )
continue;
break;
}