Release PiThreadListLock before KeReleaseThread is called in PiDeleteThread.

svn path=/trunk/; revision=3583
This commit is contained in:
Hartmut Birr 2002-09-30 20:56:17 +00:00
parent f5eae01623
commit ffe7ccffd2

View file

@ -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");
}