Conform to the new CSR_PROCESS and CSR_THREAD.
authorEmanuele Aliberti <ea@iol.it>
Sat, 13 Aug 2005 12:46:37 +0000 (12:46 +0000)
committerEmanuele Aliberti <ea@iol.it>
Sat, 13 Aug 2005 12:46:37 +0000 (12:46 +0000)
svn path=/trunk/; revision=17364

reactos/subsys/csr/csrsrv/process.c
reactos/subsys/csr/csrsrv/thread.c

index 6ccaa24..2ff3413 100644 (file)
@@ -68,7 +68,7 @@ NTSTATUS STDCALL CsrCreateProcess (PCSR_SESSION pCsrSession, PCSR_PROCESS * ppCs
        {
                Status = STATUS_NO_MEMORY;
        } else {
-               pCsrProcess->CsrSession = pCsrSession;
+               pCsrProcess->NtSession = pCsrSession;
                if (NULL != ppCsrProcess)
                {
                        *ppCsrProcess = pCsrProcess;
index c4dddef..c06c539 100644 (file)
@@ -53,7 +53,7 @@ NTSTATUS STDCALL CsrCreateThread (PCSR_PROCESS pCsrProcess, PCSR_THREAD *ppCsrTh
        {
                return STATUS_INVALID_PARAMETER;
        }
-       pCsrSession = pCsrProcess->CsrSession;
+       pCsrSession = pCsrProcess->NtSession;
        pCsrThread = RtlAllocateHeap (pCsrSession->Heap,
                                        HEAP_ZERO_MEMORY,
                                        sizeof (CSR_THREAD));
@@ -62,8 +62,7 @@ NTSTATUS STDCALL CsrCreateThread (PCSR_PROCESS pCsrProcess, PCSR_THREAD *ppCsrTh
                DPRINT1("CSRSRV:%s: out of memory!\n", __FUNCTION__);
                return STATUS_NO_MEMORY;
        }
-       pCsrThread->CsrSession = pCsrSession;
-       pCsrThread->CsrProcess = pCsrProcess;   
+       pCsrThread->Process = pCsrProcess;      
        return Status;
 }