[WINMM] Fix MIDI_StreamOpen

Christian Costa titan.costa at wanadoo.fr
Tue Nov 25 13:18:10 CST 2003


Hi,

*lpuDeviceID is set by the caller with the ID of the desired output device.
Now midi output device selection is taken into account with midi stream.

Bye.

Changelog :
Fix handling of the lpuDeviceID input param in MIDI_StreamOpen.

Christian Costa   titan.costa at wanadoo.fr

-------------- next part --------------
Index: winmm.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/winmm.c,v
retrieving revision 1.24
diff -u -r1.24 winmm.c
--- winmm.c	9 Nov 2003 01:19:58 -0000	1.24
+++ winmm.c	25 Nov 2003 18:08:44 -0000
@@ -1960,9 +1960,7 @@
     if (lphMidiStrm)
 	*lphMidiStrm = (HMIDISTRM)hMidiOut;
 
-    /* FIXME: is lpuDevice initialized upon entering midiStreamOpen ? */
-    FIXME("*lpuDeviceID=%x\n", *lpuDeviceID);
-    lpwm->mld.uDeviceID = *lpuDeviceID = 0;
+    lpwm->mld.uDeviceID = *lpuDeviceID;
 
     ret = MMDRV_Open(&lpwm->mld, MODM_OPEN, (DWORD)&lpwm->mod, fdwOpen);
     lpMidiStrm->hEvent = CreateEventA(NULL, FALSE, FALSE, NULL);


More information about the wine-patches mailing list