winebuild: Fix retrieving syscall arg length on x86_64.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-07-09 12:47:33 +02:00
parent f62b05dadd
commit 461fc592ad
1 changed files with 2 additions and 1 deletions

View File

@ -1498,7 +1498,8 @@ void output_syscalls( DLLSPEC *spec )
output( "\tsubq $0xb,0x8(%%rbp)\n" );
output( "\tcmpq $%u,%%rax\n", count );
output( "\tjae 3f\n" );
output( "\tmovzbq .Lsyscall_args(%%rip),%%rcx\n" );
output( "\tleaq .Lsyscall_args(%%rip),%%rcx\n" );
output( "\tmovzbl (%%rcx,%%rax),%%ecx\n" );
output( "\tsubq $0x20,%%rcx\n" );
output( "\tjbe 1f\n" );
output( "\tsubq %%rcx,%%rsp\n" );