From 5eb3a136c65759fab69ce54ba46a080b4797d18d Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sun, 14 Sep 2003 10:48:39 +0000 Subject: [PATCH] - Returned STATUS_PROCESS_IS_TERMINATING/STATUS_THREAD_IS_TERMINATING instead of STATUS_UNSUCCESSFUL if a process/thread is deleted. svn path=/trunk/; revision=6075 --- reactos/ntoskrnl/ob/object.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/ob/object.c b/reactos/ntoskrnl/ob/object.c index f6d48eee7d2..0df0dd3d3cd 100644 --- a/reactos/ntoskrnl/ob/object.c +++ b/reactos/ntoskrnl/ob/object.c @@ -1,4 +1,4 @@ -/* $Id: object.c,v 1.66 2003/07/29 14:37:39 ekohl Exp $ +/* $Id: object.c,v 1.67 2003/09/14 10:48:39 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -550,6 +550,14 @@ ObReferenceObjectByPointer(IN PVOID Object, if (Header->CloseInProcess) { + if (Header->ObjectType == PsProcessType) + { + return STATUS_PROCESS_IS_TERMINATING; + } + if (Header->ObjectType == PsThreadType) + { + return STATUS_THREAD_IS_TERMINATING; + } return(STATUS_UNSUCCESSFUL); }