Commit 11b53529 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

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

parent e14b6dcf
...@@ -1256,7 +1256,7 @@ LONG ALSA_MidiInit(void) ...@@ -1256,7 +1256,7 @@ LONG ALSA_MidiInit(void)
while (snd_seq_query_next_port(midiSeq, pinfo) >= 0) { while (snd_seq_query_next_port(midiSeq, pinfo) >= 0) {
int cap = snd_seq_port_info_get_capability(pinfo); int cap = snd_seq_port_info_get_capability(pinfo);
int type = snd_seq_port_info_get_type(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); ALSA_AddMidiPort(cinfo, pinfo, cap, type);
} }
} }
...@@ -1269,7 +1269,7 @@ LONG ALSA_MidiInit(void) ...@@ -1269,7 +1269,7 @@ LONG ALSA_MidiInit(void)
while (snd_seq_query_next_port(midiSeq, pinfo) >= 0) { while (snd_seq_query_next_port(midiSeq, pinfo) >= 0) {
int cap = snd_seq_port_info_get_capability(pinfo); int cap = snd_seq_port_info_get_capability(pinfo);
int type = snd_seq_port_info_get_type(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); ALSA_AddMidiPort(cinfo, pinfo, cap, type);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment