ntoskrnl.exe: Trace the call to AddDevice().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-11-06 00:13:17 -06:00 committed by Alexandre Julliard
parent 74b98dc82b
commit 781fc47f36
1 changed files with 2 additions and 0 deletions

View File

@ -226,10 +226,12 @@ static void load_function_driver( DEVICE_OBJECT *device, HDEVINFO set, SP_DEVINF
return;
}
TRACE("Calling AddDevice routine %p.\n", driver_obj->DriverExtension->AddDevice);
if (driver_obj->DriverExtension->AddDevice)
status = driver_obj->DriverExtension->AddDevice( driver_obj, device );
else
status = STATUS_NOT_IMPLEMENTED;
TRACE("AddDevice routine %p returned %#x.\n", driver_obj->DriverExtension->AddDevice, status);
ObDereferenceObject( driver_obj );