mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
[ntoskrnl]
- Fix a type from rev 19847. Only if the KernelMode List is not empty are there pending APCs. svn path=/trunk/; revision=51442
This commit is contained in:
parent
39eeae29f8
commit
7e9f462dbd
1 changed files with 2 additions and 2 deletions
|
@ -538,7 +538,7 @@ KeDetachProcess(VOID)
|
|||
KiExitDispatcher(ApcLock.OldIrql);
|
||||
|
||||
/* Check if we have pending APCs */
|
||||
if (IsListEmpty(&Thread->ApcState.ApcListHead[KernelMode]))
|
||||
if (!(IsListEmpty(&Thread->ApcState.ApcListHead[KernelMode])))
|
||||
{
|
||||
/* What do you know, we do! Request them to be delivered */
|
||||
Thread->ApcState.KernelApcPending = TRUE;
|
||||
|
@ -705,7 +705,7 @@ KeUnstackDetachProcess(IN PRKAPC_STATE ApcState)
|
|||
KiExitDispatcher(ApcLock.OldIrql);
|
||||
|
||||
/* Check if we have pending APCs */
|
||||
if (IsListEmpty(&Thread->ApcState.ApcListHead[KernelMode]))
|
||||
if (!(IsListEmpty(&Thread->ApcState.ApcListHead[KernelMode])))
|
||||
{
|
||||
/* What do you know, we do! Request them to be delivered */
|
||||
Thread->ApcState.KernelApcPending = TRUE;
|
||||
|
|
Loading…
Reference in a new issue