Make snooping work when current_modref == NULL
Dmitry Timoshkov
dmitry at baikal.ru
Sun Aug 1 02:50:59 CDT 2004
Hello,
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
Make snooping work when current_modref == NULL, i.e. for LoadLibrary,
GetProcAddress sequence.
--- cvs/hq/wine/dlls/ntdll/loader.c 2004-07-24 16:27:15.000000000 +0900
+++ wine/dlls/ntdll/loader.c 2004-08-01 16:10:51.000000000 +0900
@@ -305,10 +305,11 @@ static FARPROC find_ordinal_export( HMOD
((const char *)proc < (const char *)exports + exp_size))
return find_forwarded_export( module, (const char *)proc );
- if (TRACE_ON(snoop) && current_modref)
+ if (TRACE_ON(snoop))
{
+ WINE_MODREF *wm = get_modref( module );
proc = SNOOP_GetProcAddress( module, exports, exp_size, proc, ordinal,
- current_modref->ldr.BaseDllName.Buffer );
+ wm->ldr.BaseDllName.Buffer );
}
if (TRACE_ON(relay) && current_modref)
{
More information about the wine-patches
mailing list