[warnings] fix unused result warnings

This commit is contained in:
akallabeth
2026-01-26 12:31:30 +01:00
parent 3170a21418
commit 3f163cee9c
4 changed files with 10 additions and 5 deletions

View File

@@ -713,7 +713,8 @@ FREERDP_ENTRY_POINT(UINT VCAPITYPE DeviceServiceEntry(PDEVICE_SERVICE_ENTRY_POIN
if (pEntryPoints->device->Name)
{
smartcard_call_context_add(smartcard->callctx, pEntryPoints->device->Name);
if (!smartcard_call_context_add(smartcard->callctx, pEntryPoints->device->Name))
goto fail;
}
sSmartcard = smartcard;

View File

@@ -257,14 +257,16 @@ BOOL freerdp_connect(freerdp* instance)
while (pcap_has_next_record(update->pcap_rfx) && status)
{
pcap_get_next_record_header(update->pcap_rfx, &record);
if (!pcap_get_next_record_header(update->pcap_rfx, &record))
break;
s = transport_take_from_pool(rdp->transport, record.length);
if (!s)
break;
record.data = Stream_Buffer(s);
pcap_get_next_record_content(update->pcap_rfx, &record);
if (!pcap_get_next_record_content(update->pcap_rfx, &record))
break;
Stream_SetLength(s, record.length);
Stream_SetPosition(s, 0);

View File

@@ -234,7 +234,8 @@ int update_recv_surfcmds(rdpUpdate* update, wStream* s)
{
const size_t size = Stream_GetPosition(s) - start;
/* TODO: treat return values */
pcap_add_record(up->pcap_rfx, mark, size);
if (!pcap_add_record(up->pcap_rfx, mark, size))
return -1;
pcap_flush(up->pcap_rfx);
}
}

View File

@@ -565,7 +565,8 @@ static BOOL tf_peer_dump_rfx(freerdp_peer* client)
break;
record.data = Stream_Buffer(s);
pcap_get_next_record_content(pcap_rfx, &record);
if (!pcap_get_next_record_content(pcap_rfx, &record))
break;
Stream_SetPosition(s, Stream_Capacity(s));
if (info->test_dump_rfx_realtime &&