win32u: Build the syscall argument array from the generated syscall list.
This commit is contained in:
parent
f799f6f471
commit
c8ecc35966
2 changed files with 10 additions and 2 deletions
|
@ -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 =
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue