From e1ed22b77ff621265d2c81e8e51ca3d71b4ac78b Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Sat, 3 Feb 2007 21:10:08 +0000 Subject: [PATCH] - Temporarily disable referencing and dereferencing the LPC mapping process since the dereference never seems to happen, thus causing processes never to die. Now they die again when killed/closing. svn path=/trunk/; revision=25708 --- reactos/ntoskrnl/lpc/close.c | 2 +- reactos/ntoskrnl/lpc/connect.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/lpc/close.c b/reactos/ntoskrnl/lpc/close.c index d142d0f50a9..89ec7d38747 100644 --- a/reactos/ntoskrnl/lpc/close.c +++ b/reactos/ntoskrnl/lpc/close.c @@ -374,7 +374,7 @@ LpcpDeletePort(IN PVOID ObjectBody) } /* Dereference the mapping process */ - ObDereferenceObject(Port->MappingProcess); + //ObDereferenceObject(Port->MappingProcess); Port->MappingProcess = NULL; } diff --git a/reactos/ntoskrnl/lpc/connect.c b/reactos/ntoskrnl/lpc/connect.c index 6031ecedc75..8853a3ed9de 100644 --- a/reactos/ntoskrnl/lpc/connect.c +++ b/reactos/ntoskrnl/lpc/connect.c @@ -299,7 +299,7 @@ NtSecureConnectPort(OUT PHANDLE PortHandle, /* Reference and remember the process */ ClientPort->MappingProcess = PsGetCurrentProcess(); - ObReferenceObject(ClientPort->MappingProcess); + //ObReferenceObject(ClientPort->MappingProcess); } else { -- 2.17.1