[NTOS:KE:X64] Handle pending user APC on syscall exit (should be done on trap exit, too)

This commit is contained in:
Timo Kreuzer 2019-06-27 18:07:58 +02:00
parent 2a8c680dbe
commit 637183a12c

View file

@ -806,6 +806,13 @@ PUBLIC KiSystemServiceExit
IntsEnabled:
#endif
/* Check for pending user APC */
mov rcx, gs:qword ptr [PcCurrentThread]
cmp byte ptr [rcx + ThApcState + AsUserApcPending], 0
jz no_user_apc_pending
call KiInitiateUserApc
no_user_apc_pending:
/* Disable interrupts for return */
cli