mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[c23] simplify boolean checks
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user