1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

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

This commit is contained in:
Alexandre Julliard 2023-11-17 09:57:14 +01:00
parent f799f6f471
commit c8ecc35966
2 changed files with 10 additions and 2 deletions

View file

@ -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;
}

View file

@ -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 =
{