typedef int (*psPeerSendChannelData)(freerdp_peer* peer, UINT16 channelId, const BYTE* data,
int size);
typedef int (*psPeerReceiveChannelData)(freerdp_peer* peer, UINT16 channelId, const BYTE* data,
- int size, int flags, int totalSize);
+ size_t size, UINT32 flags, size_t totalSize);
typedef HANDLE (*psPeerVirtualChannelOpen)(freerdp_peer* peer, const char* name, UINT32 flags);
typedef BOOL (*psPeerVirtualChannelClose)(freerdp_peer* peer, HANDLE hChannel);
}
static BOOL WTSProcessChannelData(rdpPeerChannel* channel, UINT16 channelId, const BYTE* data,
- int s, int flags, int t)
+ size_t s, UINT32 flags, size_t t)
{
BOOL ret = TRUE;
const size_t size = (size_t)s;
const size_t totalSize = (size_t)t;
- if ((s < 0) || (t < 0))
- return FALSE;
+
+ WINPR_UNUSED(channelId);
if (flags & CHANNEL_FLAG_FIRST)
{
return ret;
}
-static int WTSReceiveChannelData(freerdp_peer* client, UINT16 channelId, const BYTE* data, int size,
- int flags, int totalSize)
+static int WTSReceiveChannelData(freerdp_peer* client, UINT16 channelId, const BYTE* data,
+ size_t size, UINT32 flags, size_t totalSize)
{
UINT32 i;
BOOL status = FALSE;
}
static int pf_server_receive_channel_data_hook(freerdp_peer* peer, UINT16 channelId,
- const BYTE* data, int size, int flags, int totalSize)
+ const BYTE* data, size_t size, UINT32 flags,
+ size_t totalSize)
{
pServerContext* ps = (pServerContext*)peer->context;
pClientContext* pc = ps->pdata->pc;