Fix handling of the lpuDeviceID input param in MIDI_StreamOpen.
This commit is contained in:
parent
801cb5a6f1
commit
3640c36f8b
|
@ -1960,9 +1960,7 @@ MMRESULT MIDI_StreamOpen(HMIDISTRM* lphMidiStrm, LPUINT lpuDeviceID, DWORD cMidi
|
||||||
if (lphMidiStrm)
|
if (lphMidiStrm)
|
||||||
*lphMidiStrm = (HMIDISTRM)hMidiOut;
|
*lphMidiStrm = (HMIDISTRM)hMidiOut;
|
||||||
|
|
||||||
/* FIXME: is lpuDevice initialized upon entering midiStreamOpen ? */
|
lpwm->mld.uDeviceID = *lpuDeviceID;
|
||||||
FIXME("*lpuDeviceID=%x\n", *lpuDeviceID);
|
|
||||||
lpwm->mld.uDeviceID = *lpuDeviceID = 0;
|
|
||||||
|
|
||||||
ret = MMDRV_Open(&lpwm->mld, MODM_OPEN, (DWORD)&lpwm->mod, fdwOpen);
|
ret = MMDRV_Open(&lpwm->mld, MODM_OPEN, (DWORD)&lpwm->mod, fdwOpen);
|
||||||
lpMidiStrm->hEvent = CreateEventA(NULL, FALSE, FALSE, NULL);
|
lpMidiStrm->hEvent = CreateEventA(NULL, FALSE, FALSE, NULL);
|
||||||
|
|
Loading…
Reference in New Issue