Commit c8ecc359 authored by Alexandre Julliard's avatar Alexandre Julliard

win32u: Build the syscall argument array from the generated syscall list.

parent f799f6f4
......@@ -945,7 +945,6 @@ NTSTATUS ntdll_init_syscalls( SYSTEM_SERVICE_TABLE *table, void **dispatcher )
NtTerminateProcess( GetCurrentProcess(), STATUS_INVALID_PARAMETER );
}
info->dispatcher = __wine_syscall_dispatcher;
memcpy( table->ArgumentTable, (USHORT *)(info + 1) + info->limit, table->ServiceLimit );
KeServiceDescriptorTable[info->id] = *table;
return STATUS_SUCCESS;
}
......
......@@ -47,7 +47,16 @@ static void * const syscalls[] =
#undef SYSCALL_ENTRY
};
static BYTE arguments[ARRAY_SIZE(syscalls)];
static BYTE arguments[ARRAY_SIZE(syscalls)] =
{
#define SYSCALL_ENTRY(id,name,args) args,
#ifdef _WIN64
ALL_SYSCALLS64
#else
ALL_SYSCALLS32
#endif
#undef SYSCALL_ENTRY
};
static SYSTEM_SERVICE_TABLE syscall_table =
{
......
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