ntdll: Display the text in DriverServiceName in the load/unload stubs

Paul Chitescu paulc at voip.null.ro
Thu Dec 14 13:29:55 CST 2006


Changelog: ntdll: Display the text in DriverServiceName in the load/unload 
stubs

This helps in finding exactly what drivers an application tries to load. The 
address of the UNICODE_STRING was not really useful.
-------------- next part --------------
--- ./dlls/ntdll/loader.c.orig	7 Dec 2006 20:24:35 -0000	1.144
+++ ./dlls/ntdll/loader.c	14 Dec 2006 19:22:06 -0000
@@ -2270,7 +2270,8 @@
  */
 NTSTATUS WINAPI NtLoadDriver( const UNICODE_STRING *DriverServiceName )
 {
-    FIXME("(%p), stub!\n",DriverServiceName);
+    LPCWSTR name = DriverServiceName ? DriverServiceName->Buffer : NULL;
+    FIXME("(%p %s), stub!\n",DriverServiceName, debugstr_w(name));
     return STATUS_NOT_IMPLEMENTED;
 }
 
@@ -2281,7 +2282,8 @@
  */
 NTSTATUS WINAPI NtUnloadDriver( const UNICODE_STRING *DriverServiceName )
 {
-    FIXME("(%p), stub!\n",DriverServiceName);
+    LPCWSTR name = DriverServiceName ? DriverServiceName->Buffer : NULL;
+    FIXME("(%p %s), stub!\n",DriverServiceName, debugstr_w(name));
     return STATUS_NOT_IMPLEMENTED;
 }
 


More information about the wine-patches mailing list