[PORTCLS]
[reactos.git] / reactos / drivers / wdm / audio / backpln / portcls / filter_wavecyclic.cpp
index b5b0b08..71a61a6 100644 (file)
@@ -141,9 +141,9 @@ CPortFilterWaveCyclic::DeviceIoControl(
 
     if (IoStack->Parameters.DeviceIoControl.IoControlCode != IOCTL_KS_PROPERTY)
     {
-        DPRINT1("Unhandled function %lx Length %x\n", IoStack->Parameters.DeviceIoControl.IoControlCode, IoStack->Parameters.DeviceIoControl.InputBufferLength);
+        DPRINT("Unhandled function %lx Length %x\n", IoStack->Parameters.DeviceIoControl.IoControlCode, IoStack->Parameters.DeviceIoControl.InputBufferLength);
         
-        Irp->IoStatus.Status = STATUS_SUCCESS;
+        Irp->IoStatus.Status = STATUS_UNSUCCESSFUL;
 
         IoCompleteRequest(Irp, IO_NO_INCREMENT);
         return STATUS_SUCCESS;
@@ -336,7 +336,6 @@ CPortFilterWaveCyclic::FreePin(
         if (m_Pins[Index] == Pin)
         {
             m_Descriptor->Factory.Instances[Index].CurrentPinInstanceCount--;
-            m_Pins[Index]->Release();
             m_Pins[Index] = NULL;
             return STATUS_SUCCESS;
         }