From 8e3bb615a071350a726091b71e5369c0c7095dcb Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Tue, 13 May 2003 00:28:25 +0000 Subject: [PATCH] Fix NULL pointer error when displaying error message about missing forwarded export. --- dlls/ntdll/loader.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c index a89306cd502..e7dd55158f2 100644 --- a/dlls/ntdll/loader.c +++ b/dlls/ntdll/loader.c @@ -123,7 +123,8 @@ static FARPROC find_forwarded_export( HMODULE module, const char *forward ) if (!(wm = MODULE_FindModule( mod_name ))) { - ERR("module not found for forward '%s' used by '%s'\n", forward, current_modref->filename ); + ERR("module not found for forward '%s' used by '%s'\n", + forward, get_modref(module)->filename ); return NULL; } if ((exports = RtlImageDirectoryEntryToData( wm->ldr.BaseAddress, TRUE, @@ -134,7 +135,7 @@ static FARPROC find_forwarded_export( HMODULE module, const char *forward ) { ERR("function not found for forward '%s' used by '%s'." " If you are using builtin '%s', try using the native one instead.\n", - forward, current_modref->filename, current_modref->modname ); + forward, get_modref(module)->filename, get_modref(module)->modname ); } return proc; } -- 2.11.4.GIT