Commit 631fb9b6 authored by Alexandre Julliard's avatar Alexandre Julliard

winebuild: Output relay thunks for stub functions when the arguments are known.

parent 2e6f48b7
...@@ -53,7 +53,18 @@ static inline int needs_relay( const ORDDEF *odp ) ...@@ -53,7 +53,18 @@ static inline int needs_relay( const ORDDEF *odp )
/* skip nonexistent entry points */ /* skip nonexistent entry points */
if (!odp) return 0; if (!odp) return 0;
/* skip non-functions */ /* skip non-functions */
if (odp->type != TYPE_STDCALL && odp->type != TYPE_CDECL && odp->type != TYPE_THISCALL) return 0; switch (odp->type)
{
case TYPE_STDCALL:
case TYPE_CDECL:
case TYPE_THISCALL:
break;
case TYPE_STUB:
if (odp->u.func.nb_args != -1) break;
/* fall through */
default:
return 0;
}
/* skip norelay and forward entry points */ /* skip norelay and forward entry points */
if (odp->flags & (FLAG_NORELAY|FLAG_FORWARD)) return 0; if (odp->flags & (FLAG_NORELAY|FLAG_FORWARD)) return 0;
/* skip register entry points on x86_64 */ /* skip register entry points on x86_64 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment