mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
HUGO: Remove Invalid Memory Read in getSound() - Size not defined until after function returns.
svn-id: r54787
This commit is contained in:
parent
669ad3d217
commit
7adecddbfc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user