Better error message for forwards.

This commit is contained in:
Andreas Mohr 2000-12-05 21:11:35 +00:00 committed by Alexandre Julliard
parent 6f96a8b337
commit 8c91b080b7
1 changed files with 5 additions and 5 deletions

View File

@ -221,7 +221,7 @@ static FARPROC PE_FindExportedFunction(
}
else /* forward entry point */
{
WINE_MODREF *wm;
WINE_MODREF *wm_fw;
FARPROC proc;
char *forward = RVA(addr);
char module[256];
@ -231,13 +231,13 @@ static FARPROC PE_FindExportedFunction(
if (end - forward >= sizeof(module)) return NULL;
memcpy( module, forward, end - forward );
module[end-forward] = 0;
if (!(wm = MODULE_FindModule( module )))
if (!(wm_fw = MODULE_FindModule( module )))
{
ERR("module not found for forward '%s'\n", forward );
ERR("module not found for forward '%s' used by '%s'\n", forward, wm->modname );
return NULL;
}
if (!(proc = MODULE_GetProcAddress( wm->module, end + 1, snoop )))
ERR("function not found for forward '%s'\n", forward );
if (!(proc = MODULE_GetProcAddress( wm_fw->module, end + 1, snoop )))
ERR("function not found for forward '%s' used by '%s'. If you are using builtin '%s', try using the native one instead.\n", forward, wm->modname, wm->modname );
return proc;
}
}