From ffe7ccffd2d2bc49495f2648fd33c26b0e1fa8fa Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Mon, 30 Sep 2002 20:56:17 +0000 Subject: [PATCH] Release PiThreadListLock before KeReleaseThread is called in PiDeleteThread. svn path=/trunk/; revision=3583 --- reactos/ntoskrnl/ps/create.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ps/create.c b/reactos/ntoskrnl/ps/create.c index 5387eab3206..3fb88008e4a 100644 --- a/reactos/ntoskrnl/ps/create.c +++ b/reactos/ntoskrnl/ps/create.c @@ -1,4 +1,4 @@ -/* $Id: create.c,v 1.53 2002/09/08 10:23:39 chorns Exp $ +/* $Id: create.c,v 1.54 2002/09/30 20:56:17 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -296,8 +296,8 @@ PiDeleteThread(PVOID ObjectBody) } PiNrThreads--; RemoveEntryList(&Thread->Tcb.ThreadListEntry); - KeReleaseThread(Thread); KeReleaseSpinLock(&PiThreadListLock, oldIrql); + KeReleaseThread(Thread); DPRINT("PiDeleteThread() finished\n"); }