mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 23:04:05 +00:00
winebuild: Disable relay for non-standard fastcall parameters.
This commit is contained in:
parent
df31d3c7fe
commit
cb86bb92d2
|
@ -309,16 +309,9 @@ static int parse_spec_arguments( ORDDEF *odp, DLLSPEC *spec, int optional )
|
|||
error( "A fastcall function must use the stdcall convention\n" );
|
||||
return 0;
|
||||
}
|
||||
if (!i || (odp->u.func.args[0] != ARG_PTR && odp->u.func.args[0] != ARG_LONG))
|
||||
{
|
||||
error( "First argument of a fastcall function must be a pointer or integer\n" );
|
||||
return 0;
|
||||
}
|
||||
if (i > 1 && odp->u.func.args[1] != ARG_PTR && odp->u.func.args[1] != ARG_LONG)
|
||||
{
|
||||
error( "Second argument of a fastcall function must be a pointer or integer\n" );
|
||||
return 0;
|
||||
}
|
||||
if ((i && odp->u.func.args[0] != ARG_PTR && odp->u.func.args[0] != ARG_LONG) ||
|
||||
(i > 1 && odp->u.func.args[1] != ARG_PTR && odp->u.func.args[1] != ARG_LONG))
|
||||
odp->flags |= FLAG_NORELAY; /* no relay debug possible for non-standard fastcall args */
|
||||
}
|
||||
if (odp->flags & FLAG_SYSCALL)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue