Parcourir la 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 il y a 11 ans
Parent
révision
3dc64bb1c0
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3
    2
      osx/cmMidiOsx.c

+ 3
- 2
osx/cmMidiOsx.c Voir le fichier

@@ -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];

Chargement…
Annuler
Enregistrer