mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fix calls to KeAttachProcess
svn path=/trunk/; revision=11623
This commit is contained in:
parent
a9c33470e5
commit
126f95c1ea
4 changed files with 15 additions and 15 deletions
|
@ -194,7 +194,7 @@ NTSTATUS LdrpMapSystemDll(HANDLE ProcessHandle,
|
|||
if (Process != CurrentProcess)
|
||||
{
|
||||
DPRINT("Attaching to Process\n");
|
||||
KeAttachProcess(Process);
|
||||
KeAttachProcess((PKPROCESS)Process);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: send.c,v 1.18 2004/09/13 19:10:45 gvg Exp $
|
||||
/* $Id: send.c,v 1.19 2004/11/11 22:37:05 ion Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -268,7 +268,7 @@ NtRequestWaitReplyPort (IN HANDLE PortHandle,
|
|||
{
|
||||
if (NULL != AttachedProcess)
|
||||
{
|
||||
KeAttachProcess(AttachedProcess);
|
||||
KeAttachProcess((PKPROCESS)AttachedProcess);
|
||||
}
|
||||
ObDereferenceObject(Port);
|
||||
return(Status);
|
||||
|
@ -277,7 +277,7 @@ NtRequestWaitReplyPort (IN HANDLE PortHandle,
|
|||
{
|
||||
if (NULL != AttachedProcess)
|
||||
{
|
||||
KeAttachProcess(AttachedProcess);
|
||||
KeAttachProcess((PKPROCESS)AttachedProcess);
|
||||
}
|
||||
ObDereferenceObject(Port);
|
||||
return(STATUS_PORT_MESSAGE_TOO_LONG);
|
||||
|
@ -287,7 +287,7 @@ NtRequestWaitReplyPort (IN HANDLE PortHandle,
|
|||
{
|
||||
if (NULL != AttachedProcess)
|
||||
{
|
||||
KeAttachProcess(AttachedProcess);
|
||||
KeAttachProcess((PKPROCESS)AttachedProcess);
|
||||
}
|
||||
ObDereferenceObject(Port);
|
||||
return(STATUS_NO_MEMORY);
|
||||
|
@ -299,7 +299,7 @@ NtRequestWaitReplyPort (IN HANDLE PortHandle,
|
|||
ExFreePool(LpcRequest);
|
||||
if (NULL != AttachedProcess)
|
||||
{
|
||||
KeAttachProcess(AttachedProcess);
|
||||
KeAttachProcess((PKPROCESS)AttachedProcess);
|
||||
}
|
||||
ObDereferenceObject(Port);
|
||||
return(Status);
|
||||
|
@ -310,7 +310,7 @@ NtRequestWaitReplyPort (IN HANDLE PortHandle,
|
|||
ExFreePool(LpcRequest);
|
||||
if (NULL != AttachedProcess)
|
||||
{
|
||||
KeAttachProcess(AttachedProcess);
|
||||
KeAttachProcess((PKPROCESS)AttachedProcess);
|
||||
}
|
||||
ObDereferenceObject(Port);
|
||||
return(STATUS_PORT_MESSAGE_TOO_LONG);
|
||||
|
@ -320,7 +320,7 @@ NtRequestWaitReplyPort (IN HANDLE PortHandle,
|
|||
ExFreePool(LpcRequest);
|
||||
if (NULL != AttachedProcess)
|
||||
{
|
||||
KeAttachProcess(AttachedProcess);
|
||||
KeAttachProcess((PKPROCESS)AttachedProcess);
|
||||
}
|
||||
ObDereferenceObject(Port);
|
||||
return(STATUS_PORT_MESSAGE_TOO_LONG);
|
||||
|
@ -336,7 +336,7 @@ NtRequestWaitReplyPort (IN HANDLE PortHandle,
|
|||
ExFreePool(LpcRequest);
|
||||
if (NULL != AttachedProcess)
|
||||
{
|
||||
KeAttachProcess(AttachedProcess);
|
||||
KeAttachProcess((PKPROCESS)AttachedProcess);
|
||||
}
|
||||
ObDereferenceObject(Port);
|
||||
return(Status);
|
||||
|
@ -382,7 +382,7 @@ NtRequestWaitReplyPort (IN HANDLE PortHandle,
|
|||
}
|
||||
if (NULL != AttachedProcess)
|
||||
{
|
||||
KeAttachProcess(AttachedProcess);
|
||||
KeAttachProcess((PKPROCESS)AttachedProcess);
|
||||
}
|
||||
ObDereferenceObject(Port);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: kill.c,v 1.81 2004/10/31 13:01:04 hbirr Exp $
|
||||
/* $Id: kill.c,v 1.82 2004/11/11 22:40:30 ion Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -288,7 +288,7 @@ PiTerminateProcess(PEPROCESS Process,
|
|||
CurrentProcess = PsGetCurrentProcess();
|
||||
if (Process != CurrentProcess)
|
||||
{
|
||||
KeAttachProcess( Process );
|
||||
KeAttachProcess((PKPROCESS) Process );
|
||||
}
|
||||
ObCloseAllHandles(Process);
|
||||
if (Process != CurrentProcess)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: process.c,v 1.149 2004/11/10 02:51:00 ion Exp $
|
||||
/* $Id: process.c,v 1.150 2004/11/11 22:40:30 ion Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -364,7 +364,7 @@ PiDeleteProcessWorker(PVOID pContext)
|
|||
|
||||
if (CurrentProcess != Process)
|
||||
{
|
||||
KeAttachProcess(Process);
|
||||
KeAttachProcess((PKPROCESS)Process);
|
||||
}
|
||||
|
||||
KeAcquireSpinLock(&PsProcessListLock, &oldIrql);
|
||||
|
@ -486,7 +486,7 @@ PsCreatePeb(HANDLE ProcessHandle,
|
|||
}
|
||||
DPRINT("TableBase %p ViewSize %lx\n", TableBase, ViewSize);
|
||||
|
||||
KeAttachProcess(Process);
|
||||
KeAttachProcess((PKPROCESS)Process);
|
||||
|
||||
/* Initialize the PEB */
|
||||
RtlZeroMemory(Peb, sizeof(PEB));
|
||||
|
|
Loading…
Reference in a new issue