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 11 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
 
481
 
482
 void _cmMpMIDISystemReadProc( const MIDIPacketList *pktListPtr, void* readProcRefCon, void* srcConnRefCon )
482
 void _cmMpMIDISystemReadProc( const MIDIPacketList *pktListPtr, void* readProcRefCon, void* srcConnRefCon )
483
 {
483
 {
484
-  cmMpRoot*  rp = (cmMpRoot*)readProcRefCon;
484
+  //cmMpRoot*  rp = (cmMpRoot*)readProcRefCon;
485
   cmMpPort*  pp = (cmMpPort*)srcConnRefCon;
485
   cmMpPort*  pp = (cmMpPort*)srcConnRefCon;
486
   unsigned i;
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
     return;
490
     return;
490
 
491
 
491
 	const MIDIPacket* packetPtr = &pktListPtr->packet[0];
492
 	const MIDIPacket* packetPtr = &pktListPtr->packet[0];

Loading…
Cancel
Save