From ed10a7b01f86f1197c8c3cbcefe34fca6a746c14 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Sun, 12 Dec 2004 23:18:55 +0000 Subject: [PATCH] - Acquire the dispatcher lock in KeRevertToUserAffinityThread instead of just using uninintialized oldIrql variable. svn path=/trunk/; revision=12067 --- reactos/ntoskrnl/ke/kthread.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/ke/kthread.c b/reactos/ntoskrnl/ke/kthread.c index 5c745b021b5..63f9a4a801f 100644 --- a/reactos/ntoskrnl/ke/kthread.c +++ b/reactos/ntoskrnl/ke/kthread.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: kthread.c,v 1.60 2004/12/12 17:36:00 hbirr Exp $ +/* $Id: kthread.c,v 1.61 2004/12/12 23:18:55 navaraf Exp $ * * FILE: ntoskrnl/ke/kthread.c * PURPOSE: Microkernel thread support @@ -313,6 +313,8 @@ KeRevertToUserAffinityThread(VOID) PKTHREAD CurrentThread; KIRQL oldIrql; + oldIrql = KeAcquireDispatcherDatabaseLock(); + CurrentThread = KeGetCurrentThread(); ASSERT(CurrentThread->SystemAffinityActive != FALSE);