Christian Costa : winealsa.drv: Use correct tests for synthesizer/ port enumeration order.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jun 7 16:26:41 CDT 2007


Module: wine
Branch: master
Commit: 11b53529ee23b8b0606ef0fe1390b4dff8cfd3b3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=11b53529ee23b8b0606ef0fe1390b4dff8cfd3b3

Author: Christian Costa <titan.costa at wanadoo.fr>
Date:   Thu Jun  7 21:53:08 2007 +0200

winealsa.drv: Use correct tests for synthesizer/port enumeration order.

---

 dlls/winealsa.drv/midi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winealsa.drv/midi.c b/dlls/winealsa.drv/midi.c
index eecb406..4f6d77b 100644
--- a/dlls/winealsa.drv/midi.c
+++ b/dlls/winealsa.drv/midi.c
@@ -1256,7 +1256,7 @@ LONG ALSA_MidiInit(void)
 	while (snd_seq_query_next_port(midiSeq, pinfo) >= 0) {
             int cap = snd_seq_port_info_get_capability(pinfo);
 	    int type = snd_seq_port_info_get_type(pinfo);
-	    if (type != SND_SEQ_PORT_TYPE_MIDI_GENERIC)
+	    if (!(type & SND_SEQ_PORT_TYPE_PORT))
 	        ALSA_AddMidiPort(cinfo, pinfo, cap, type);
 	}
     }
@@ -1269,7 +1269,7 @@ LONG ALSA_MidiInit(void)
 	while (snd_seq_query_next_port(midiSeq, pinfo) >= 0) {
             int cap = snd_seq_port_info_get_capability(pinfo);
 	    int type = snd_seq_port_info_get_type(pinfo);
-	    if (type == SND_SEQ_PORT_TYPE_MIDI_GENERIC)
+	    if (type & SND_SEQ_PORT_TYPE_PORT)
 	        ALSA_AddMidiPort(cinfo, pinfo, cap, type);
 	}
     }




More information about the wine-cvs mailing list