Merge pull request #5180 from chipitsine/coverity
resolve several issues found by coverity
This commit is contained in:
commit
abd5cf51ff
@ -702,16 +702,8 @@ static BOOL tsmf_sample_playback(TSMF_SAMPLE* sample)
|
||||
buffer_filled = FALSE;
|
||||
}
|
||||
|
||||
if (buffer_filled)
|
||||
{
|
||||
ack_anticipation_time += (sample->duration / 2 < MAX_ACK_TIME) ?
|
||||
sample->duration / 2 : MAX_ACK_TIME;
|
||||
}
|
||||
else
|
||||
{
|
||||
ack_anticipation_time += (sample->duration / 2 < MAX_ACK_TIME) ?
|
||||
sample->duration / 2 : MAX_ACK_TIME;
|
||||
}
|
||||
|
||||
switch (sample->stream->major_type)
|
||||
{
|
||||
|
@ -370,12 +370,7 @@ rdpSettings* freerdp_settings_new(DWORD flags)
|
||||
settings->CompressionEnabled = TRUE;
|
||||
settings->LogonNotify = TRUE;
|
||||
settings->BrushSupportLevel = BRUSH_COLOR_FULL;
|
||||
|
||||
if (settings->ServerMode)
|
||||
settings->CompressionLevel = PACKET_COMPR_TYPE_RDP61;
|
||||
else
|
||||
settings->CompressionLevel = PACKET_COMPR_TYPE_RDP61;
|
||||
|
||||
settings->Authentication = TRUE;
|
||||
settings->AuthenticationOnly = FALSE;
|
||||
settings->CredentialsFromStdin = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user