[Scummvm-cvs-logs] SF.net SVN: scummvm:[47345] scummvm/trunk/engines/sci/sound/softseq/midi. cpp
waltervn at users.sourceforge.net
waltervn at users.sourceforge.net
Sun Jan 17 21:00:58 CET 2010
Revision: 47345
http://scummvm.svn.sourceforge.net/scummvm/?rev=47345&view=rev
Author: waltervn
Date: 2010-01-17 20:00:58 +0000 (Sun, 17 Jan 2010)
Log Message:
-----------
SCI: Check GM patch before loading it
Modified Paths:
--------------
scummvm/trunk/engines/sci/sound/softseq/midi.cpp
Modified: scummvm/trunk/engines/sci/sound/softseq/midi.cpp
===================================================================
--- scummvm/trunk/engines/sci/sound/softseq/midi.cpp 2010-01-17 19:32:19 UTC (rev 47344)
+++ scummvm/trunk/engines/sci/sound/softseq/midi.cpp 2010-01-17 20:00:58 UTC (rev 47345)
@@ -591,7 +591,7 @@
// General MIDI
res = resMan->findResource(ResourceId(kResourceTypePatch, 4), 0);
- if (res) {
+ if (res && isMt32GmPatch(res->data, res->size)) {
readMt32GmPatch(res->data, res->size);
// Detect the format of patch 1, so that we know what play mask to use
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list