mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
- Returned STATUS_PROCESS_IS_TERMINATING/STATUS_THREAD_IS_TERMINATING instead of
STATUS_UNSUCCESSFUL if a process/thread is deleted. svn path=/trunk/; revision=6075
This commit is contained in:
parent
1324042725
commit
5eb3a136c6
1 changed files with 9 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue