From 98e2bc66e53cdf23417bccd3ec89c56f8644f0d2 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Mon, 10 Jul 2006 13:10:22 +0000 Subject: [PATCH] Add DPRINT1s for failures, and added UNIMPLEMENTED macro in the unimplemented export function svn path=/trunk/; revision=22994 --- reactos/ntoskrnl/io/pnpmgr/pnpmgr.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c index 7130a2e3504..01d24174540 100644 --- a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c +++ b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c @@ -454,6 +454,7 @@ VOID STDCALL IoInvalidateDeviceState(IN PDEVICE_OBJECT PhysicalDeviceObject) { + UNIMPLEMENTED; } /** @@ -496,7 +497,10 @@ IoOpenDeviceRegistryKey(IN PDEVICE_OBJECT DeviceObject, DPRINT("IoOpenDeviceRegistryKey() called\n"); if ((DevInstKeyType & (PLUGPLAY_REGKEY_DEVICE | PLUGPLAY_REGKEY_DRIVER)) == 0) - return STATUS_INVALID_PARAMETER; + { + DPRINT1("IoOpenDeviceRegistryKey(): got wrong params, exiting... \n"); + return STATUS_INVALID_PARAMETER; + } /* * Calculate the length of the base key name. This is the full @@ -554,6 +558,7 @@ IoOpenDeviceRegistryKey(IN PDEVICE_OBJECT DeviceObject, &DriverKeyLength); if (!NT_SUCCESS(Status)) { + DPRINT1("Call to IoGetDeviceProperty() failed with Status 0x%08lx\n", Status); ExFreePool(KeyNameBuffer); return Status; } @@ -614,7 +619,7 @@ VOID STDCALL IoRequestDeviceEject(IN PDEVICE_OBJECT PhysicalDeviceObject) { - UNIMPLEMENTED; + UNIMPLEMENTED; }