mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-17 09:07:41 +02:00
Correct error trap - compare with what we are expecting.
This commit is contained in:
parent
54f7e4590b
commit
37eeb7628e
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user