mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[warnings] integer cast and checks
This commit is contained in:
@@ -772,13 +772,11 @@ static UINT rdpgfx_send_cache_import_offer_pdu(RdpgfxClientContext* context,
|
||||
wStream* s = NULL;
|
||||
RDPGFX_HEADER header;
|
||||
GENERIC_CHANNEL_CALLBACK* callback = NULL;
|
||||
WINPR_ASSERT(context);
|
||||
RDPGFX_PLUGIN* gfx = (RDPGFX_PLUGIN*)context->handle;
|
||||
|
||||
if (!context || !pdu)
|
||||
return ERROR_BAD_ARGUMENTS;
|
||||
|
||||
gfx = (RDPGFX_PLUGIN*)context->handle;
|
||||
RDPGFX_PLUGIN* gfx = (RDPGFX_PLUGIN*)context->handle;
|
||||
|
||||
if (!gfx || !gfx->base.listener_callback)
|
||||
return ERROR_BAD_CONFIGURATION;
|
||||
|
||||
Reference in New Issue
Block a user