From 9c8a8cf2aad3e445367d681944a85d7a6315a2a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Thu, 3 Nov 2022 18:03:43 +0100 Subject: [PATCH] [CSRSRV][NTOS:PS] Misc typos fixes. --- ntoskrnl/ps/thread.c | 2 +- subsystems/csr/csrsrv/procsup.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); }