[Scummvm-cvs-logs] CVS: scummvm/scumm resource.cpp,1.87,1.88
Jamieson Christian
jamieson630 at users.sourceforge.net
Sat May 24 18:43:02 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv15040/scummvm/scumm
Modified Files:
resource.cpp
Log Message:
Possible fix for [742962] MI1VGA - Crash at Scumm Bar.
Fixes End of Track that is rewritten from 'AD' resource.
Index: resource.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/resource.cpp,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- resource.cpp 25 May 2003 00:04:16 -0000 1.87
+++ resource.cpp 25 May 2003 01:42:53 -0000 1.88
@@ -1076,7 +1076,7 @@
nukeResource(type, idx);
total_size = 8 + 16 + 14 + 8 + 7 + sizeof(OLD256_MIDI_HACK) + size;
if (!play_once)
- total_size += 20; // Up to 20 additional bytes are needed for the jump sysex
+ total_size += 24; // Up to 24 additional bytes are needed for the jump sysex
// Write the ADL header (see also above for more information)
ptr = createResource(type, idx, total_size);
@@ -1212,7 +1212,7 @@
memcpy(ptr, "\x00\xf7", 2); ptr += 2; // sysex end marker
// Finally we reinsert the end of song sysex, just in case
- memcpy(ptr, "\x00\xff\x21", 3); ptr += 3;
+ memcpy(ptr, "\x00\xff\x21\x00\x00", 5); ptr += 5;
}
return 1;
More information about the Scummvm-git-logs
mailing list