Commit fddd7aab authored by Alexandre Julliard's avatar Alexandre Julliard

winebuild: Disallow floating point arguments in syscall functions.

parent f83ec675
......@@ -271,14 +271,20 @@ static int parse_spec_arguments( ORDDEF *odp, DLLSPEC *spec, int optional )
error( "Unknown argument type '%s'\n", token );
return 0;
}
if (is_win32) switch (arg)
switch (arg)
{
case ARG_WORD:
case ARG_SWORD:
case ARG_SEGPTR:
case ARG_SEGSTR:
if (!is_win32) break;
error( "Argument type '%s' only allowed for Win16\n", token );
return 0;
case ARG_FLOAT:
case ARG_DOUBLE:
if (!(odp->flags & FLAG_SYSCALL)) break;
error( "Argument type '%s' not allowed for syscall function\n", token );
return 0;
}
odp->u.func.args[i] = arg;
}
......
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