cmMidiOsx.c : Removed some sanity checks in _cmMpMIdiSystemReadProc()
because the variables cheched were not used in the function and were failing the sanity check.
This commit is contained in:
parent
cb19fb10a2
commit
3dc64bb1c0
@ -481,11 +481,12 @@ void _cmMpMidiSystemNotifyProc( const MIDINotification* notifyMsgPtr, void *refC
|
||||
|
||||
void _cmMpMIDISystemReadProc( const MIDIPacketList *pktListPtr, void* readProcRefCon, void* srcConnRefCon )
|
||||
{
|
||||
cmMpRoot* rp = (cmMpRoot*)readProcRefCon;
|
||||
//cmMpRoot* rp = (cmMpRoot*)readProcRefCon;
|
||||
cmMpPort* pp = (cmMpPort*)srcConnRefCon;
|
||||
unsigned i;
|
||||
|
||||
if( pktListPtr == NULL || rp == NULL || pp == NULL || rp->cbFunc == NULL )
|
||||
|
||||
if( pktListPtr == NULL /*|| rp == NULL*/ || pp == NULL /*|| rp->cbFunc == NULL*/ )
|
||||
return;
|
||||
|
||||
const MIDIPacket* packetPtr = &pktListPtr->packet[0];
|
||||
|
Loading…
Reference in New Issue
Block a user