6 modified files
reactos/ntoskrnl/ps
diff -u -r1.150 -r1.151
--- process.c 11 Nov 2004 22:40:30 -0000 1.150
+++ process.c 13 Nov 2004 22:27:15 -0000 1.151
@@ -1,4 +1,4 @@
-/* $Id: process.c,v 1.150 2004/11/11 22:40:30 ion Exp $
+/* $Id: process.c,v 1.151 2004/11/13 22:27:15 hbirr Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@@ -364,7 +364,7 @@
if (CurrentProcess != Process)
{
- KeAttachProcess((PKPROCESS)Process);
+ KeAttachProcess(&Process->Pcb);
}
KeAcquireSpinLock(&PsProcessListLock, &oldIrql);
@@ -486,7 +486,7 @@
}
DPRINT("TableBase %p ViewSize %lx\n", TableBase, ViewSize);
- KeAttachProcess((PKPROCESS)Process);
+ KeAttachProcess(&Process->Pcb);
/* Initialize the PEB */
RtlZeroMemory(Peb, sizeof(PEB));
reactos/ntoskrnl/ps
diff -u -r1.82 -r1.83
--- kill.c 11 Nov 2004 22:40:30 -0000 1.82
+++ kill.c 13 Nov 2004 22:27:15 -0000 1.83
@@ -1,4 +1,4 @@
-/* $Id: kill.c,v 1.82 2004/11/11 22:40:30 ion Exp $
+/* $Id: kill.c,v 1.83 2004/11/13 22:27:15 hbirr Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@@ -288,7 +288,7 @@
CurrentProcess = PsGetCurrentProcess();
if (Process != CurrentProcess)
{
- KeAttachProcess((PKPROCESS) Process );
+ KeAttachProcess(&Process->Pcb);
}
ObCloseAllHandles(Process);
if (Process != CurrentProcess)
reactos/ntoskrnl/mm
diff -u -r1.84 -r1.85
--- virtual.c 11 Nov 2004 22:23:52 -0000 1.84
+++ virtual.c 13 Nov 2004 22:27:16 -0000 1.85
@@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: virtual.c,v 1.84 2004/11/11 22:23:52 ion Exp $
+/* $Id: virtual.c,v 1.85 2004/11/13 22:27:16 hbirr Exp $
*
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/virtual.c
@@ -425,7 +425,7 @@
UserMode,
IoWriteAccess);
- KeAttachProcess((PKPROCESS)Process);
+ KeAttachProcess(&Process->Pcb);
SystemAddress = MmGetSystemAddressForMdl(Mdl);
memcpy(SystemAddress, BaseAddress, NumberOfBytesToRead);
@@ -553,7 +553,7 @@
ObDereferenceObject(Process);
return(STATUS_NO_MEMORY);
}
- KeAttachProcess((PKPROCESS)Process);
+ KeAttachProcess(&Process->Pcb);
SystemAddress = MmGetSystemAddressForMdl(Mdl);
memcpy(BaseAddress, SystemAddress, NumberOfBytesToWrite);
reactos/ntoskrnl/mm
diff -u -r1.71 -r1.72
--- marea.c 11 Nov 2004 22:23:52 -0000 1.71
+++ marea.c 13 Nov 2004 22:27:16 -0000 1.72
@@ -453,7 +453,7 @@
if (AddressSpace->Process != NULL &&
AddressSpace->Process != CurrentProcess)
{
- KeAttachProcess((PKPROCESS)AddressSpace->Process);
+ KeAttachProcess(&AddressSpace->Process->Pcb);
}
EndAddress = (char*)MemoryArea->BaseAddress + PAGE_ROUND_UP(MemoryArea->Length);
for (Address = MemoryArea->BaseAddress; Address < EndAddress; Address += PAGE_SIZE)
reactos/ntoskrnl/lpc
diff -u -r1.19 -r1.20
--- send.c 11 Nov 2004 22:37:05 -0000 1.19
+++ send.c 13 Nov 2004 22:27:16 -0000 1.20
@@ -1,4 +1,4 @@
-/* $Id: send.c,v 1.19 2004/11/11 22:37:05 ion Exp $
+/* $Id: send.c,v 1.20 2004/11/13 22:27:16 hbirr Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@@ -218,7 +218,7 @@
PLPC_MESSAGE UnsafeLpcReply)
{
PETHREAD CurrentThread;
- struct _EPROCESS *AttachedProcess;
+ struct _KPROCESS *AttachedProcess;
NTSTATUS Status;
PEPORT Port;
PQUEUEDMESSAGE Message;
@@ -257,7 +257,7 @@
}
else
{
- AttachedProcess = (PEPROCESS)CurrentThread->Tcb.ApcState.Process;
+ AttachedProcess = CurrentThread->Tcb.ApcState.Process;
KeDetachProcess();
}
@@ -268,7 +268,7 @@
{
if (NULL != AttachedProcess)
{
- KeAttachProcess((PKPROCESS)AttachedProcess);
+ KeAttachProcess(AttachedProcess);
}
ObDereferenceObject(Port);
return(Status);
@@ -277,7 +277,7 @@
{
if (NULL != AttachedProcess)
{
- KeAttachProcess((PKPROCESS)AttachedProcess);
+ KeAttachProcess(AttachedProcess);
}
ObDereferenceObject(Port);
return(STATUS_PORT_MESSAGE_TOO_LONG);
@@ -287,7 +287,7 @@
{
if (NULL != AttachedProcess)
{
- KeAttachProcess((PKPROCESS)AttachedProcess);
+ KeAttachProcess(AttachedProcess);
}
ObDereferenceObject(Port);
return(STATUS_NO_MEMORY);
@@ -299,7 +299,7 @@
ExFreePool(LpcRequest);
if (NULL != AttachedProcess)
{
- KeAttachProcess((PKPROCESS)AttachedProcess);
+ KeAttachProcess(AttachedProcess);
}
ObDereferenceObject(Port);
return(Status);
@@ -310,7 +310,7 @@
ExFreePool(LpcRequest);
if (NULL != AttachedProcess)
{
- KeAttachProcess((PKPROCESS)AttachedProcess);
+ KeAttachProcess(AttachedProcess);
}
ObDereferenceObject(Port);
return(STATUS_PORT_MESSAGE_TOO_LONG);
@@ -320,7 +320,7 @@
ExFreePool(LpcRequest);
if (NULL != AttachedProcess)
{
- KeAttachProcess((PKPROCESS)AttachedProcess);
+ KeAttachProcess(AttachedProcess);
}
ObDereferenceObject(Port);
return(STATUS_PORT_MESSAGE_TOO_LONG);
@@ -336,7 +336,7 @@
ExFreePool(LpcRequest);
if (NULL != AttachedProcess)
{
- KeAttachProcess((PKPROCESS)AttachedProcess);
+ KeAttachProcess(AttachedProcess);
}
ObDereferenceObject(Port);
return(Status);
@@ -382,7 +382,7 @@
}
if (NULL != AttachedProcess)
{
- KeAttachProcess((PKPROCESS)AttachedProcess);
+ KeAttachProcess(AttachedProcess);
}
ObDereferenceObject(Port);
reactos/ntoskrnl/ldr
diff -u -r1.25 -r1.26
--- sysdll.c 11 Nov 2004 22:40:28 -0000 1.25
+++ sysdll.c 13 Nov 2004 22:27:16 -0000 1.26
@@ -194,7 +194,7 @@
if (Process != CurrentProcess)
{
DPRINT("Attaching to Process\n");
- KeAttachProcess((PKPROCESS)Process);
+ KeAttachProcess(&Process->Pcb);
}
/*
CVSspam 0.2.8