[NTOS:KE/x64] Improve KiSystemCallHandler code a bit
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 25 Mar 2024 20:37:50 +0000 (22:37 +0200)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 28 Mar 2024 21:26:42 +0000 (22:26 +0100)
commit5442f870801e059b28eaec8cfea01e6bce1d8131
treec6bda3ee0077275f826606f8b9fac588acd5cf56
parent2ed8541dc8d7872757e8e3946786bd57f6b46533
[NTOS:KE/x64] Improve KiSystemCallHandler code a bit

- Use an index for the table instead of ugly pointer offset
- Invert the check for GUI calls
- Fail with proper status code on invalid win32k syscall ids
ntoskrnl/ke/amd64/traphandler.c