1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-16 16:47:41 +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
file.Write((char*)&int24sampleData[i], 3);
#endif
if (nBytesWritten != nBytesToWrite)
if (nBytesWritten != 3)
{
wxLogDebug(wxT("Wrote %d bytes, expected 3."), nBytesWritten);
return false;