[USER32]
[reactos.git] / reactos / lib / drivers / sound / mmixer / midi.c
index 4809c91..afe1a22 100644 (file)
@@ -6,7 +6,10 @@
  * PROGRAMMER:      Johannes Anderwald
  */
 
-#include "priv.h"
+#include "precomp.h"
+
+#define YDEBUG
+#include <debug.h>
 
 MIXER_STATUS
 MMixerGetPinDataFlowAndCommunication(
@@ -69,7 +72,7 @@ MMixerAddMidiPin(
     MidiInfo->PinId = PinId;
 
     /* sanity check */
-    ASSERT(wcslen(DeviceName) + 1 < MAXPNAMELEN);
+    ASSERT(!DeviceName || (wcslen(DeviceName) + 1 < MAXPNAMELEN));
 
     /* copy device name */
     if (bInput && DeviceName)
@@ -126,7 +129,6 @@ MMixerCheckFilterPinMidiSupport(
     PKSDATARANGE DataRange;
     KSPIN_COMMUNICATION Communication;
     KSPIN_DATAFLOW DataFlow;
-    MIXER_STATUS Status;
 
     /* get first datarange */
     DataRange = (PKSDATARANGE)(MultipleItem + 1);
@@ -146,11 +148,11 @@ MMixerCheckFilterPinMidiSupport(
             {
                 if (DataFlow == KSPIN_DATAFLOW_IN && Communication == KSPIN_COMMUNICATION_SINK)
                 {
-                    Status = MMixerAddMidiPin(MixerContext, MixerList, MixerData->DeviceId, PinId, FALSE, szPname);
+                    MMixerAddMidiPin(MixerContext, MixerList, MixerData->DeviceId, PinId, FALSE, szPname);
                 }
                 else if (DataFlow == KSPIN_DATAFLOW_OUT && Communication == KSPIN_COMMUNICATION_SOURCE)
                 {
-                    Status = MMixerAddMidiPin(MixerContext, MixerList, MixerData->DeviceId, PinId, TRUE, szPname);
+                    MMixerAddMidiPin(MixerContext, MixerList, MixerData->DeviceId, PinId, TRUE, szPname);
                 }
             }
         }