Detlef Riekenberg : ntdll: Dump the base address when a module is loaded.

Alexandre Julliard julliard at winehq.org
Fri Oct 26 08:34:51 CDT 2007


Module: wine
Branch: master
Commit: 2be2c1acc589b888db7b8a78feea454037afe299
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2be2c1acc589b888db7b8a78feea454037afe299

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Thu Oct 25 23:36:39 2007 +0200

ntdll: Dump the base address when a module is loaded.

---

 dlls/ntdll/loader.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index 6c1d7bc..8769b09 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -1446,7 +1446,7 @@ static NTSTATUS load_native_dll( LPCWSTR load_path, LPCWSTR name, HANDLE file,
 
     if ((wm->ldr.Flags & LDR_IMAGE_IS_DLL) && TRACE_ON(snoop)) SNOOP_SetupDLL( module );
 
-    TRACE_(loaddll)( " Loaded module %s : native\n", debugstr_w(wm->ldr.FullDllName.Buffer) );
+    TRACE_(loaddll)( "Loaded %s at %p: native\n", debugstr_w(wm->ldr.FullDllName.Buffer), module );
 
     wm->ldr.LoadCount = 1;
     *pwm = wm;
@@ -1563,8 +1563,8 @@ static NTSTATUS load_builtin_dll( LPCWSTR load_path, LPCWSTR path, HANDLE file,
             if (mod->Flags & LDR_WINE_INTERNAL && mod->SectionHandle == handle)
             {
                 info.wm = CONTAINING_RECORD(mod, WINE_MODREF, ldr);
-                TRACE( "Found already loaded module %s for builtin %s\n",
-                       debugstr_w(info.wm->ldr.FullDllName.Buffer), debugstr_w(path) );
+                TRACE( "Found %s at %p for builtin %s\n",
+                       debugstr_w(info.wm->ldr.FullDllName.Buffer), info.wm->ldr.BaseAddress, debugstr_w(path) );
                 break;
             }
         }
@@ -1574,7 +1574,7 @@ static NTSTATUS load_builtin_dll( LPCWSTR load_path, LPCWSTR path, HANDLE file,
     }
     else
     {
-        TRACE_(loaddll)( "Loaded module %s : builtin\n", debugstr_w(info.wm->ldr.FullDllName.Buffer) );
+        TRACE_(loaddll)( "Loaded %s at %p: builtin\n", debugstr_w(info.wm->ldr.FullDllName.Buffer), info.wm->ldr.BaseAddress );
         info.wm->ldr.LoadCount = 1;
         info.wm->ldr.SectionHandle = handle;
     }
@@ -1827,7 +1827,7 @@ static NTSTATUS load_dll( LPCWSTR load_path, LPCWSTR libname, DWORD flags, WINE_
 
         if (!(flags & DONT_RESOLVE_DLL_REFERENCES)) fixup_imports( *pwm, load_path );
 
-        TRACE("Found loaded module %s for %s at %p, count=%d\n",
+        TRACE("Found %s for %s at %p, count=%d\n",
               debugstr_w((*pwm)->ldr.FullDllName.Buffer), debugstr_w(libname),
               (*pwm)->ldr.BaseAddress, (*pwm)->ldr.LoadCount);
         if (filename != buffer) RtlFreeHeap( GetProcessHeap(), 0, filename );




More information about the wine-cvs mailing list