widl: Only pass power of 2 structures by value on x86-64.

This commit is contained in:
Alexandre Julliard 2024-04-15 16:15:33 +02:00
parent 9cda4233df
commit 377f9f8de9

View file

@ -434,7 +434,7 @@ static unsigned int get_stack_size( const var_t *var, int *by_value )
switch (target.cpu)
{
case CPU_x86_64:
by_val = (stack_size <= pointer_size);
by_val = (stack_size == 1 || stack_size == 2 || stack_size == 4 || stack_size == 8);
break;
case CPU_ARM64:
by_val = (stack_size <= 2 * pointer_size);