mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-13 16:16:33 +01:00
Correct error trap - compare with what we are expecting.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user