Browse Source

cmMidiOsx.c : Removed some sanity checks in _cmMpMIdiSystemReadProc()

because the variables cheched were not used in the function and were
failing the sanity check.
master
kevin 10 years ago
parent
commit
3dc64bb1c0
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      osx/cmMidiOsx.c

+ 3
- 2
osx/cmMidiOsx.c View File

@@ -481,11 +481,12 @@ void _cmMpMidiSystemNotifyProc( const MIDINotification* notifyMsgPtr, void *refC
481 481
 
482 482
 void _cmMpMIDISystemReadProc( const MIDIPacketList *pktListPtr, void* readProcRefCon, void* srcConnRefCon )
483 483
 {
484
-  cmMpRoot*  rp = (cmMpRoot*)readProcRefCon;
484
+  //cmMpRoot*  rp = (cmMpRoot*)readProcRefCon;
485 485
   cmMpPort*  pp = (cmMpPort*)srcConnRefCon;
486 486
   unsigned i;
487 487
 
488
-  if( pktListPtr == NULL || rp == NULL || pp == NULL || rp->cbFunc == NULL )
488
+
489
+  if( pktListPtr == NULL /*|| rp == NULL*/ || pp == NULL /*|| rp->cbFunc == NULL*/ )
489 490
     return;
490 491
 
491 492
 	const MIDIPacket* packetPtr = &pktListPtr->packet[0];

Loading…
Cancel
Save