Skip to content
Snippets Groups Projects
Commit 8e3bb615 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard
Browse files

Fix NULL pointer error when displaying error message about missing

forwarded export.
parent 8f55ac51
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment