[PATCH] ntdll: Dump the BaseAddress, when a module was loaded
Detlef Riekenberg
wine.dev at web.de
Thu Oct 25 16:36:39 CDT 2007
---
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 ea57247..e655ec4 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -1448,7 +1448,7 @@ static NTSTATUS load_native_dll( LPCWSTR
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;
@@ -1580,8 +1580,8 @@ static NTSTATUS load_builtin_dll( LPCWST
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;
}
}
@@ -1591,7 +1591,7 @@ static NTSTATUS load_builtin_dll( LPCWST
}
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;
}
@@ -1844,7 +1844,7 @@ static NTSTATUS load_dll( LPCWSTR load_p
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 );
--
1.4.1
--=-1UivQRQtTuv5bGPNBHVB--
More information about the wine-patches
mailing list