From 3dc64bb1c02a18fffa9f9f4a86041986d689c7ae Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 16 Oct 2013 09:00:22 -0700 Subject: [PATCH] cmMidiOsx.c : Removed some sanity checks in _cmMpMIdiSystemReadProc() because the variables cheched were not used in the function and were failing the sanity check. --- osx/cmMidiOsx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/osx/cmMidiOsx.c b/osx/cmMidiOsx.c index 3c78a25..fec2f9f 100644 --- a/osx/cmMidiOsx.c +++ b/osx/cmMidiOsx.c @@ -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];