diff --git a/ntoskrnl/ps/thread.c b/ntoskrnl/ps/thread.c index 25b449505c5..969351c6763 100644 --- a/ntoskrnl/ps/thread.c +++ b/ntoskrnl/ps/thread.c @@ -375,7 +375,7 @@ PspCreateThread(OUT PHANDLE ThreadHandle, KeEnterCriticalRegion(); ExAcquirePushLockExclusive(&Process->ProcessLock); - /* Make sure the proces didn't just die on us */ + /* Make sure the process didn't just die on us */ if (Process->ProcessDelete) goto Quickie; /* Check if the thread was ours, terminated and it was user mode */ diff --git a/subsystems/csr/csrsrv/procsup.c b/subsystems/csr/csrsrv/procsup.c index 929a0bc39a6..7abf0d1f6d6 100644 --- a/subsystems/csr/csrsrv/procsup.c +++ b/subsystems/csr/csrsrv/procsup.c @@ -127,7 +127,7 @@ CsrProcessRefcountZero(IN PCSR_PROCESS CsrProcess) if (CsrProcess->NtSession) { /* Dereference the Session */ - CsrDereferenceNtSession(CsrProcess->NtSession, 0); + CsrDereferenceNtSession(CsrProcess->NtSession, STATUS_SUCCESS); } /* Close the Client Port if there is one */ @@ -136,7 +136,7 @@ CsrProcessRefcountZero(IN PCSR_PROCESS CsrProcess) /* Close the process handle */ NtClose(CsrProcess->ProcessHandle); - /* Free the Proces Object */ + /* Free the Process Object */ CsrDeallocateProcess(CsrProcess); }