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

Alexandre Julliard julliard at winehq.org
Wed Nov 6 16:54:29 CST 2019


Module: wine
Branch: master
Commit: 781fc47f361953f7411a84e32b066d5011473bd4
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=781fc47f361953f7411a84e32b066d5011473bd4

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Wed Nov  6 00:13:17 2019 -0600

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

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntoskrnl.exe/pnp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/ntoskrnl.exe/pnp.c b/dlls/ntoskrnl.exe/pnp.c
index 89676a06ad..a3dbe772ae 100644
--- a/dlls/ntoskrnl.exe/pnp.c
+++ b/dlls/ntoskrnl.exe/pnp.c
@@ -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 );
 




More information about the wine-cvs mailing list