1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-17 17:17:40 +02:00

Correct error trap - compare with what we are expecting.

This commit is contained in:
martynshaw99 2012-02-05 23:54:56 +00:00
parent 54f7e4590b
commit 37eeb7628e

View File

@ -237,7 +237,7 @@ bool SimpleBlockFile::WriteSimpleBlockFile(
#else #else
file.Write((char*)&int24sampleData[i], 3); file.Write((char*)&int24sampleData[i], 3);
#endif #endif
if (nBytesWritten != nBytesToWrite) if (nBytesWritten != 3)
{ {
wxLogDebug(wxT("Wrote %d bytes, expected 3."), nBytesWritten); wxLogDebug(wxT("Wrote %d bytes, expected 3."), nBytesWritten);
return false; return false;