HUGO: Remove Invalid Memory Read in getSound() - Size not defined until after function returns.

svn-id: r54787
This commit is contained in:
David Turner 2010-12-05 21:52:42 +00:00
parent 669ad3d217
commit 7adecddbfc

View File

@ -250,7 +250,7 @@ void FileManager::readImage(int objNum, object_t *objPtr) {
* any allocated memory. Also returns size of data
*/
sound_pt FileManager::getSound(int16 sound, uint16 *size) {
debugC(1, kDebugFile, "getSound(%d, %d)", sound, *size);
debugC(1, kDebugFile, "getSound(%d)", sound);
// No more to do if SILENCE (called for cleanup purposes)
if (sound == _vm->_soundSilence)