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