From 931c8c27e204f61417454ebe02fca33847d80d2c Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 20 Mar 2009 00:20:29 +0000 Subject: Fix parameter in Windows MIDI backend (this is according to API documentation from M$). svn-id: r39556 --- backends/midi/windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends') 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); -- cgit v1.2.3