mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 08:54:38 +09:00
Fixed dead store warnings
This commit is contained in:
@@ -169,6 +169,8 @@ int bulk_decompress(rdpBulk* bulk, BYTE* pSrcData, UINT32 SrcSize, BYTE** ppDstD
|
||||
metrics->TotalCompressionRatio, metrics->TotalCompressedBytes,
|
||||
metrics->TotalUncompressedBytes);
|
||||
}
|
||||
#else
|
||||
WINPR_UNUSED(CompressionRatio);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
@@ -234,6 +236,8 @@ int bulk_compress(rdpBulk* bulk, BYTE* pSrcData, UINT32 SrcSize, BYTE** ppDstDat
|
||||
metrics->TotalCompressionRatio, metrics->TotalCompressedBytes,
|
||||
metrics->TotalUncompressedBytes);
|
||||
}
|
||||
#else
|
||||
WINPR_UNUSED(CompressionRatio);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -344,13 +344,11 @@ BOOL rdp_client_connect(rdpRdp* rdp)
|
||||
|
||||
BOOL rdp_client_disconnect(rdpRdp* rdp)
|
||||
{
|
||||
rdpSettings* settings;
|
||||
rdpContext* context;
|
||||
|
||||
if (!rdp || !rdp->settings || !rdp->context)
|
||||
return FALSE;
|
||||
|
||||
settings = rdp->settings;
|
||||
context = rdp->context;
|
||||
|
||||
if (!nego_disconnect(rdp->nego))
|
||||
@@ -384,13 +382,11 @@ static BOOL rdp_client_reconnect_channels(rdpRdp* rdp, BOOL redirect)
|
||||
{
|
||||
BOOL status = FALSE;
|
||||
rdpContext* context;
|
||||
rdpChannels* channels;
|
||||
|
||||
if (!rdp || !rdp->context || !rdp->context->channels)
|
||||
return FALSE;
|
||||
|
||||
context = rdp->context;
|
||||
channels = context->channels;
|
||||
|
||||
if (context->instance->ConnectionCallbackState == CLIENT_STATE_INITIAL)
|
||||
return FALSE;
|
||||
@@ -483,15 +479,11 @@ BOOL rdp_client_redirect(rdpRdp* rdp)
|
||||
{
|
||||
BOOL status;
|
||||
rdpSettings* settings;
|
||||
rdpContext* context;
|
||||
rdpChannels* channels;
|
||||
|
||||
if (!rdp || !rdp->context || !rdp->context->channels)
|
||||
if (!rdp || !rdp->settings)
|
||||
return FALSE;
|
||||
|
||||
settings = rdp->settings;
|
||||
context = rdp->context;
|
||||
channels = context->channels;
|
||||
|
||||
if (!rdp_client_disconnect_and_clear(rdp))
|
||||
return FALSE;
|
||||
@@ -558,15 +550,10 @@ BOOL rdp_client_redirect(rdpRdp* rdp)
|
||||
BOOL rdp_client_reconnect(rdpRdp* rdp)
|
||||
{
|
||||
BOOL status;
|
||||
rdpContext* context;
|
||||
rdpChannels* channels;
|
||||
|
||||
if (!rdp || !rdp->context || !rdp->context->channels)
|
||||
return FALSE;
|
||||
|
||||
context = rdp->context;
|
||||
channels = context->channels;
|
||||
|
||||
if (!rdp_client_disconnect_and_clear(rdp))
|
||||
return FALSE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user