mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
added Hartmuts KeDetachProcess(); and attach patch for GCC.
svn path=/trunk/; revision=2826
This commit is contained in:
parent
3cbf8c1de6
commit
80362e4ed7
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: handle.c,v 1.35 2002/02/19 00:09:24 ekohl Exp $
|
/* $Id: handle.c,v 1.36 2002/04/07 09:24:36 sedwards Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -259,6 +259,7 @@ VOID ObCloseAllHandles(PEPROCESS Process)
|
||||||
current->handles[i].ObjectBody = NULL;
|
current->handles[i].ObjectBody = NULL;
|
||||||
|
|
||||||
KeReleaseSpinLock(&HandleTable->ListLock, oldIrql);
|
KeReleaseSpinLock(&HandleTable->ListLock, oldIrql);
|
||||||
|
KeDetachProcess();
|
||||||
|
|
||||||
if ((Header->ObjectType != NULL) &&
|
if ((Header->ObjectType != NULL) &&
|
||||||
(Header->ObjectType->Close != NULL))
|
(Header->ObjectType->Close != NULL))
|
||||||
|
@ -268,6 +269,7 @@ VOID ObCloseAllHandles(PEPROCESS Process)
|
||||||
}
|
}
|
||||||
|
|
||||||
ObDereferenceObject(ObjectBody);
|
ObDereferenceObject(ObjectBody);
|
||||||
|
KeAttachProcess( Process );
|
||||||
KeAcquireSpinLock(&HandleTable->ListLock, &oldIrql);
|
KeAcquireSpinLock(&HandleTable->ListLock, &oldIrql);
|
||||||
current_entry = &HandleTable->ListHead;
|
current_entry = &HandleTable->ListHead;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue