mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
Conform to the new CSR_PROCESS and CSR_THREAD.
svn path=/trunk/; revision=17364
This commit is contained in:
parent
f17be37700
commit
ce468cd74a
2 changed files with 3 additions and 4 deletions
|
@ -68,7 +68,7 @@ NTSTATUS STDCALL CsrCreateProcess (PCSR_SESSION pCsrSession, PCSR_PROCESS * ppCs
|
||||||
{
|
{
|
||||||
Status = STATUS_NO_MEMORY;
|
Status = STATUS_NO_MEMORY;
|
||||||
} else {
|
} else {
|
||||||
pCsrProcess->CsrSession = pCsrSession;
|
pCsrProcess->NtSession = pCsrSession;
|
||||||
if (NULL != ppCsrProcess)
|
if (NULL != ppCsrProcess)
|
||||||
{
|
{
|
||||||
*ppCsrProcess = pCsrProcess;
|
*ppCsrProcess = pCsrProcess;
|
||||||
|
|
|
@ -53,7 +53,7 @@ NTSTATUS STDCALL CsrCreateThread (PCSR_PROCESS pCsrProcess, PCSR_THREAD *ppCsrTh
|
||||||
{
|
{
|
||||||
return STATUS_INVALID_PARAMETER;
|
return STATUS_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
pCsrSession = pCsrProcess->CsrSession;
|
pCsrSession = pCsrProcess->NtSession;
|
||||||
pCsrThread = RtlAllocateHeap (pCsrSession->Heap,
|
pCsrThread = RtlAllocateHeap (pCsrSession->Heap,
|
||||||
HEAP_ZERO_MEMORY,
|
HEAP_ZERO_MEMORY,
|
||||||
sizeof (CSR_THREAD));
|
sizeof (CSR_THREAD));
|
||||||
|
@ -62,8 +62,7 @@ NTSTATUS STDCALL CsrCreateThread (PCSR_PROCESS pCsrProcess, PCSR_THREAD *ppCsrTh
|
||||||
DPRINT1("CSRSRV:%s: out of memory!\n", __FUNCTION__);
|
DPRINT1("CSRSRV:%s: out of memory!\n", __FUNCTION__);
|
||||||
return STATUS_NO_MEMORY;
|
return STATUS_NO_MEMORY;
|
||||||
}
|
}
|
||||||
pCsrThread->CsrSession = pCsrSession;
|
pCsrThread->Process = pCsrProcess;
|
||||||
pCsrThread->CsrProcess = pCsrProcess;
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue