- fixed file header in MIDI wave writer

https://forum.zdoom.org/viewtopic.php?t=72161
This commit is contained in:
alexey.lysiuk 2021-05-05 11:18:45 +03:00
parent 0c2ac8cbf3
commit 74ff273a3d

View file

@ -150,7 +150,7 @@ bool MIDIWaveWriter::CloseFile()
if (4 == fwrite(&size, 1, 4, File))
{
size = LittleLong(uint32_t(pos - 12 - sizeof(FmtChunk) - 8));
if (0 == fseek(File, 4 + sizeof(FmtChunk) + 4, SEEK_CUR))
if (0 == fseek(File, 4 + sizeof(FmtChunk) + 8, SEEK_CUR))
{
if (4 == fwrite(&size, 1, 4, File))
{