mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[NTOS:KE:X64] Handle pending user APC on syscall exit (should be done on trap exit, too)
This commit is contained in:
parent
2a8c680dbe
commit
637183a12c
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue