File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4338,7 +4338,7 @@ namespace rtmidi{
4338
4338
PortList MidiInWinMM :: getPortList(int capabilities)
4339
4339
{
4340
4340
WinMidiData *data = static_cast <WinMidiData *> (apiData_);
4341
- if (!data) return PortList ();
4341
+ if (!data || capabilities != PortDescriptor::INPUT ) return PortList ();
4342
4342
return WinMMPortDescriptor::getPortList (PortDescriptor::INPUT,data->getClientName ());
4343
4343
}
4344
4344
@@ -4587,7 +4587,7 @@ namespace rtmidi{
4587
4587
PortList MidiOutWinMM :: getPortList(int capabilities)
4588
4588
{
4589
4589
WinMidiData *data = static_cast <WinMidiData *> (apiData_);
4590
- if (!data) return PortList ();
4590
+ if (!data || capabilities != PortDescriptor::OUTPUT ) return PortList ();
4591
4591
return WinMMPortDescriptor::getPortList (PortDescriptor::OUTPUT,data->getClientName ());
4592
4592
}
4593
4593
You can’t perform that action at this time.
0 commit comments