From e5aa7fccf61a4a5685ea74597e2f8434898c2049 Mon Sep 17 00:00:00 2001 From: Stefan Ginsberg Date: Fri, 1 Aug 2008 16:03:49 +0000 Subject: [PATCH] - Get rid of a confusing goto and call KiUnwaitThread directly. This was a remnant of some code refactoring. svn path=/trunk/; revision=35010 --- reactos/ntoskrnl/ke/apc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ke/apc.c b/reactos/ntoskrnl/ke/apc.c index d3e4fefa9dd..688585526e8 100644 --- a/reactos/ntoskrnl/ke/apc.c +++ b/reactos/ntoskrnl/ke/apc.c @@ -207,7 +207,6 @@ KiInsertQueueApc(IN PKAPC Apc, Status = STATUS_KERNEL_APC; /* Wake up the thread */ -Unwait: KiUnwaitThread(Thread, Status, PriorityBoost); } else if (Thread->State == GateWait) @@ -240,7 +239,9 @@ Unwait: /* Set user-mode APC pending */ Thread->ApcState.UserApcPending = TRUE; Status = STATUS_USER_APC; - goto Unwait; + + /* Wake up the thread */ + KiUnwaitThread(Thread, Status, PriorityBoost); } /* Release dispatcher lock */