winebuild: Signal an error when a thiscall function doesn't take a pointer as first argument.

This commit is contained in:
Alexandre Julliard 2010-08-24 19:29:51 +02:00
parent c4f673fb63
commit adddccb7f9

View File

@ -308,6 +308,11 @@ static int parse_spec_export( ORDDEF *odp, DLLSPEC *spec )
odp->u.func.arg_types[i] = '\0';
if (odp->type == TYPE_VARARGS)
odp->flags |= FLAG_NORELAY; /* no relay debug possible for varags entry point */
if (odp->type == TYPE_THISCALL && odp->u.func.arg_types[0] != 'p')
{
error( "First argument of a thiscall function must be a pointer\n" );
return 0;
}
if (!(token = GetToken(1)))
{