From 635434ea17050aa3431253adf223ee4782da79df Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 24 Dec 2005 03:16:20 +0000 Subject: [PATCH] fix for confusingly similar error codes do log when the file already exists --- .../arch/MemoryCard/MemoryCardDriverThreaded_Windows.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Windows.cpp b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Windows.cpp index 4ff27326b1..86854b8aad 100644 --- a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Windows.cpp +++ b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Windows.cpp @@ -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; }