Add DPRINT1s for failures, and added UNIMPLEMENTED macro in the unimplemented export function

svn path=/trunk/; revision=22994
This commit is contained in:
Aleksey Bragin 2006-07-10 13:10:22 +00:00
parent 6f20e7b31b
commit 98e2bc66e5

View file

@ -454,6 +454,7 @@ VOID
STDCALL STDCALL
IoInvalidateDeviceState(IN PDEVICE_OBJECT PhysicalDeviceObject) IoInvalidateDeviceState(IN PDEVICE_OBJECT PhysicalDeviceObject)
{ {
UNIMPLEMENTED;
} }
/** /**
@ -496,7 +497,10 @@ IoOpenDeviceRegistryKey(IN PDEVICE_OBJECT DeviceObject,
DPRINT("IoOpenDeviceRegistryKey() called\n"); DPRINT("IoOpenDeviceRegistryKey() called\n");
if ((DevInstKeyType & (PLUGPLAY_REGKEY_DEVICE | PLUGPLAY_REGKEY_DRIVER)) == 0) if ((DevInstKeyType & (PLUGPLAY_REGKEY_DEVICE | PLUGPLAY_REGKEY_DRIVER)) == 0)
{
DPRINT1("IoOpenDeviceRegistryKey(): got wrong params, exiting... \n");
return STATUS_INVALID_PARAMETER; return STATUS_INVALID_PARAMETER;
}
/* /*
* Calculate the length of the base key name. This is the full * Calculate the length of the base key name. This is the full
@ -554,6 +558,7 @@ IoOpenDeviceRegistryKey(IN PDEVICE_OBJECT DeviceObject,
&DriverKeyLength); &DriverKeyLength);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("Call to IoGetDeviceProperty() failed with Status 0x%08lx\n", Status);
ExFreePool(KeyNameBuffer); ExFreePool(KeyNameBuffer);
return Status; return Status;
} }