Ver código fonte

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 anos atrás
pai
commit
3dc64bb1c0
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3
    2
      osx/cmMidiOsx.c

+ 3
- 2
osx/cmMidiOsx.c Ver arquivo

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

Carregando…
Cancelar
Salvar