aboutsummaryrefslogtreecommitdiff
path: root/backends/midi/windows.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-03-20 00:20:29 +0000
committerJohannes Schickel2009-03-20 00:20:29 +0000
commit931c8c27e204f61417454ebe02fca33847d80d2c (patch)
treef843fefb3f5e57141163c4fd885ebc371f41592f /backends/midi/windows.cpp
parentcd8eeb7e473cd56db4a5cefc4bc7e4f64c80846a (diff)
downloadscummvm-rg350-931c8c27e204f61417454ebe02fca33847d80d2c.tar.gz
scummvm-rg350-931c8c27e204f61417454ebe02fca33847d80d2c.tar.bz2
scummvm-rg350-931c8c27e204f61417454ebe02fca33847d80d2c.zip
Fix parameter in Windows MIDI backend (this is according to API documentation from M$).
svn-id: r39556
Diffstat (limited to 'backends/midi/windows.cpp')
-rw-r--r--backends/midi/windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/midi/windows.cpp b/backends/midi/windows.cpp
index f9da3e3e4d..ba9e35187a 100644
--- a/backends/midi/windows.cpp
+++ b/backends/midi/windows.cpp
@@ -62,7 +62,7 @@ int MidiDriver_WIN::open() {
return MERR_ALREADY_OPEN;
_streamEvent = CreateEvent(NULL, true, true, NULL);
- MMRESULT res = midiOutOpen((HMIDIOUT *)&_mo, MIDI_MAPPER, (unsigned long)_streamEvent, 0, CALLBACK_EVENT);
+ MMRESULT res = midiOutOpen((HMIDIOUT *)&_mo, MIDI_MAPPER, (DWORD_PTR)_streamEvent, 0, CALLBACK_EVENT);
if (res != MMSYSERR_NOERROR) {
check_error(res);
CloseHandle(_streamEvent);