mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 15:50:09 +00:00
Better error message for forwards.
This commit is contained in:
parent
6f96a8b337
commit
8c91b080b7
|
@ -221,7 +221,7 @@ static FARPROC PE_FindExportedFunction(
|
||||||
}
|
}
|
||||||
else /* forward entry point */
|
else /* forward entry point */
|
||||||
{
|
{
|
||||||
WINE_MODREF *wm;
|
WINE_MODREF *wm_fw;
|
||||||
FARPROC proc;
|
FARPROC proc;
|
||||||
char *forward = RVA(addr);
|
char *forward = RVA(addr);
|
||||||
char module[256];
|
char module[256];
|
||||||
|
@ -231,13 +231,13 @@ static FARPROC PE_FindExportedFunction(
|
||||||
if (end - forward >= sizeof(module)) return NULL;
|
if (end - forward >= sizeof(module)) return NULL;
|
||||||
memcpy( module, forward, end - forward );
|
memcpy( module, forward, end - forward );
|
||||||
module[end-forward] = 0;
|
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;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (!(proc = MODULE_GetProcAddress( wm->module, end + 1, snoop )))
|
if (!(proc = MODULE_GetProcAddress( wm_fw->module, end + 1, snoop )))
|
||||||
ERR("function not found for forward '%s'\n", 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, wm->modname, wm->modname );
|
||||||
return proc;
|
return proc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue