mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 22:17:32 +00:00
widl: Only pass power of 2 structures by value on x86-64.
This commit is contained in:
parent
9cda4233df
commit
377f9f8de9
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue