mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-10 02:31:02 +00:00
Fix parameter in Windows MIDI backend (this is according to API documentation from M$).
svn-id: r39556
This commit is contained in:
parent
cd8eeb7e47
commit
931c8c27e2
@ -62,7 +62,7 @@ int MidiDriver_WIN::open() {
|
|||||||
return MERR_ALREADY_OPEN;
|
return MERR_ALREADY_OPEN;
|
||||||
|
|
||||||
_streamEvent = CreateEvent(NULL, true, true, NULL);
|
_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) {
|
if (res != MMSYSERR_NOERROR) {
|
||||||
check_error(res);
|
check_error(res);
|
||||||
CloseHandle(_streamEvent);
|
CloseHandle(_streamEvent);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user