aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/sound
diff options
context:
space:
mode:
authorMarisa-Chan2014-12-19 17:07:28 +0600
committerMarisa-Chan2014-12-19 17:07:28 +0600
commit617623e9bff85f2fc0dd75509dfb93e95e366c8e (patch)
treeec849b8c1f7a4ebac22a38b7a3e412e892c047f5 /engines/zvision/sound
parente934ffdd5e7719f80703d6874bbdb8618f1606ea (diff)
downloadscummvm-rg350-617623e9bff85f2fc0dd75509dfb93e95e366c8e.tar.gz
scummvm-rg350-617623e9bff85f2fc0dd75509dfb93e95e366c8e.tar.bz2
scummvm-rg350-617623e9bff85f2fc0dd75509dfb93e95e366c8e.zip
ZVISION: Fix unchecked return value (CID 1257090)
Diffstat (limited to 'engines/zvision/sound')
-rw-r--r--engines/zvision/sound/midi.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/zvision/sound/midi.cpp b/engines/zvision/sound/midi.cpp
index 920002c7c3..3dd66ff2d4 100644
--- a/engines/zvision/sound/midi.cpp
+++ b/engines/zvision/sound/midi.cpp
@@ -21,6 +21,7 @@
*/
#include "common/scummsys.h"
+#include "common/textconsole.h"
#include "zvision/sound/midi.h"
@@ -29,7 +30,8 @@ namespace ZVision {
MidiManager::MidiManager() {
MidiDriver::DeviceHandle dev = MidiDriver::detectDevice(MDT_MIDI | MDT_ADLIB);
_driver = MidiDriver::createMidi(dev);
- _driver->open();
+ if (_driver->open())
+ warning("Can't open MIDI, no MIDI output!");
}
MidiManager::~MidiManager() {