mirror of
https://github.com/ZDoom/ZMusic.git
synced 2025-03-21 18:10:56 +00:00
- fixed file header in MIDI wave writer
https://forum.zdoom.org/viewtopic.php?t=72161
This commit is contained in:
parent
0c2ac8cbf3
commit
74ff273a3d
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue