mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 16:40:27 +00:00
- Add error debug traces
svn path=/trunk/; revision=40642
This commit is contained in:
parent
ec0c13b498
commit
6964f7b809
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,7 @@ FilterPinWorkerRoutine(
|
||||||
Status = KsSynchronousIoControlDevice(DeviceEntry->FileObject, KernelMode, IOCTL_KS_PROPERTY, (PVOID)&PropertyRequest, sizeof(KSPROPERTY), (PVOID)&Count, sizeof(ULONG), &BytesReturned);
|
Status = KsSynchronousIoControlDevice(DeviceEntry->FileObject, KernelMode, IOCTL_KS_PROPERTY, (PVOID)&PropertyRequest, sizeof(KSPROPERTY), (PVOID)&Count, sizeof(ULONG), &BytesReturned);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
DPRINT1("Failed to query number of pins Status %x\n", Status);
|
||||||
ObDereferenceObject(DeviceEntry->FileObject);
|
ObDereferenceObject(DeviceEntry->FileObject);
|
||||||
ZwClose(DeviceEntry->Handle);
|
ZwClose(DeviceEntry->Handle);
|
||||||
ExFreePool(DeviceEntry->DeviceName.Buffer);
|
ExFreePool(DeviceEntry->DeviceName.Buffer);
|
||||||
|
@ -50,6 +51,7 @@ FilterPinWorkerRoutine(
|
||||||
|
|
||||||
if (!Count)
|
if (!Count)
|
||||||
{
|
{
|
||||||
|
DPRINT1("Filter has no pins!\n");
|
||||||
ObDereferenceObject(DeviceEntry->FileObject);
|
ObDereferenceObject(DeviceEntry->FileObject);
|
||||||
ZwClose(DeviceEntry->Handle);
|
ZwClose(DeviceEntry->Handle);
|
||||||
ExFreePool(DeviceEntry->DeviceName.Buffer);
|
ExFreePool(DeviceEntry->DeviceName.Buffer);
|
||||||
|
@ -62,6 +64,7 @@ FilterPinWorkerRoutine(
|
||||||
if (!DeviceEntry->Pins)
|
if (!DeviceEntry->Pins)
|
||||||
{
|
{
|
||||||
/* no memory */
|
/* no memory */
|
||||||
|
DPRINT1("Failed to allocate memory Block %x\n", Count * sizeof(PIN_INFO));
|
||||||
ObDereferenceObject(DeviceEntry->FileObject);
|
ObDereferenceObject(DeviceEntry->FileObject);
|
||||||
ZwClose(DeviceEntry->Handle);
|
ZwClose(DeviceEntry->Handle);
|
||||||
ExFreePool(DeviceEntry->DeviceName.Buffer);
|
ExFreePool(DeviceEntry->DeviceName.Buffer);
|
||||||
|
|
Loading…
Reference in a new issue