Fixed integer cast warnings

This commit is contained in:
akallabeth 2022-03-17 20:55:03 +01:00 committed by akallabeth
parent fa59c4b705
commit a685d90ccd
1 changed files with 3 additions and 3 deletions

View File

@ -1346,7 +1346,7 @@ static BOOL filter_smartcard_device_list_remove(pf_channel_server_context* rdpdr
Stream_Read_UINT32(s, deviceID); Stream_Read_UINT32(s, deviceID);
if (deviceID == SCARD_DEVICE_ID) if (deviceID == SCARD_DEVICE_ID)
{ {
ArrayList_Remove(rdpdr->blockedDevices, (void*)deviceID); ArrayList_Remove(rdpdr->blockedDevices, (void*)(size_t)deviceID);
/* This is the only device, filter it! */ /* This is the only device, filter it! */
if (count == 1) if (count == 1)
@ -1371,7 +1371,7 @@ static BOOL filter_smartcard_device_io_request(pf_channel_server_context* rdpdr,
WINPR_ASSERT(rdpdr); WINPR_ASSERT(rdpdr);
WINPR_ASSERT(s); WINPR_ASSERT(s);
Stream_Read_UINT32(s, DeviceID); Stream_Read_UINT32(s, DeviceID);
return ArrayList_Contains(rdpdr->blockedDevices, (void*)DeviceID); return ArrayList_Contains(rdpdr->blockedDevices, (void*)(size_t)DeviceID);
} }
static BOOL filter_smartcard_device_list_announce(pf_channel_server_context* rdpdr, wStream* s) static BOOL filter_smartcard_device_list_announce(pf_channel_server_context* rdpdr, wStream* s)
@ -1404,7 +1404,7 @@ static BOOL filter_smartcard_device_list_announce(pf_channel_server_context* rdp
return TRUE; return TRUE;
if (DeviceType == RDPDR_DTYP_SMARTCARD) if (DeviceType == RDPDR_DTYP_SMARTCARD)
{ {
ArrayList_Append(rdpdr->blockedDevices, (void*)DeviceId); ArrayList_Append(rdpdr->blockedDevices, (void*)(size_t)DeviceId);
if (count == 1) if (count == 1)
return TRUE; return TRUE;