https://git.reactos.org/?p=reactos.git;a=commitdiff;h=63007901fd1f2505689449...
commit 63007901fd1f2505689449fb8a431be07c5e34f5 Author: Serge Gautherie 32623169+SergeGautherie@users.noreply.github.com AuthorDate: Thu Mar 4 22:54:00 2021 +0100 Commit: GitHub noreply@github.com CommitDate: Thu Mar 4 22:54:00 2021 +0100
[CSRSRV] CsrApiHandleConnectionRequest(): Remove ASSERT() redundant condition (#2858)
Detected by Cppcheck: redundantCondition. Addendum to 835f3ef1. --- subsystems/win32/csrsrv/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/subsystems/win32/csrsrv/api.c b/subsystems/win32/csrsrv/api.c index a0b3de17c55..6ff8694537a 100644 --- a/subsystems/win32/csrsrv/api.c +++ b/subsystems/win32/csrsrv/api.c @@ -189,7 +189,7 @@ CsrApiHandleConnectionRequest(IN PCSR_API_MESSAGE ApiMessage) ConnectInfo->ServerProcessId = NtCurrentTeb()->ClientId.UniqueProcess;
/* Accept the Connection */ - ASSERT(!AllowConnection || (AllowConnection && CsrProcess)); + ASSERT(!AllowConnection || CsrProcess); Status = NtAcceptConnectPort(&ServerPort, AllowConnection ? UlongToPtr(CsrProcess->SequenceNumber) : 0, &ApiMessage->Header,