[c23] simplify boolean checks

This commit is contained in:
Armin Novak
2026-02-24 21:44:33 +01:00
parent f9ad8dd488
commit e58819830a
134 changed files with 505 additions and 944 deletions

View File

@@ -36,8 +36,5 @@ BOOL sf_peer_encomsp_init(testPeerContext* context)
context->encomsp->rdpcontext = &context->_p;
WINPR_ASSERT(context->encomsp->Start);
if (context->encomsp->Start(context->encomsp) != CHANNEL_RC_OK)
return FALSE;
return TRUE;
return (context->encomsp->Start(context->encomsp) == CHANNEL_RC_OK);
}

View File

@@ -53,10 +53,5 @@ BOOL sf_peer_rdpsnd_init(testPeerContext* context)
context->rdpsnd->Activated = sf_peer_rdpsnd_activated;
WINPR_ASSERT(context->rdpsnd->Initialize);
if (context->rdpsnd->Initialize(context->rdpsnd, TRUE) != CHANNEL_RC_OK)
{
return FALSE;
}
return TRUE;
return (context->rdpsnd->Initialize(context->rdpsnd, TRUE) == CHANNEL_RC_OK);
}