Author: janderwald
Date: Wed Apr 22 02:55:21 2009
New Revision: 40642
URL:
http://svn.reactos.org/svn/reactos?rev=40642&view=rev
Log:
- Add error debug traces
Modified:
trunk/reactos/drivers/wdm/audio/sysaudio/deviface.c
Modified: trunk/reactos/drivers/wdm/audio/sysaudio/deviface.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/sysaudio…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/sysaudio/deviface.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/sysaudio/deviface.c [iso-8859-1] Wed Apr 22 02:55:21
2009
@@ -41,6 +41,7 @@
Status = KsSynchronousIoControlDevice(DeviceEntry->FileObject, KernelMode,
IOCTL_KS_PROPERTY, (PVOID)&PropertyRequest, sizeof(KSPROPERTY), (PVOID)&Count,
sizeof(ULONG), &BytesReturned);
if (!NT_SUCCESS(Status))
{
+ DPRINT1("Failed to query number of pins Status %x\n", Status);
ObDereferenceObject(DeviceEntry->FileObject);
ZwClose(DeviceEntry->Handle);
ExFreePool(DeviceEntry->DeviceName.Buffer);
@@ -50,6 +51,7 @@
if (!Count)
{
+ DPRINT1("Filter has no pins!\n");
ObDereferenceObject(DeviceEntry->FileObject);
ZwClose(DeviceEntry->Handle);
ExFreePool(DeviceEntry->DeviceName.Buffer);
@@ -62,6 +64,7 @@
if (!DeviceEntry->Pins)
{
/* no memory */
+ DPRINT1("Failed to allocate memory Block %x\n", Count *
sizeof(PIN_INFO));
ObDereferenceObject(DeviceEntry->FileObject);
ZwClose(DeviceEntry->Handle);
ExFreePool(DeviceEntry->DeviceName.Buffer);