mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 19:35:42 +00:00
Fix NULL pointer error when displaying error message about missing
forwarded export.
This commit is contained in:
parent
8f55ac51fb
commit
8e3bb615a0
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue