[warnings] fix integer narrowing

This commit is contained in:
akallabeth 2024-10-03 13:15:24 +02:00
parent 42d66eaebe
commit 83921b0f67
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -1007,7 +1007,9 @@ int rpc_in_channel_send_pdu(RpcInChannel* inChannel, const BYTE* buffer, size_t
inChannel->SenderAvailableWindow -= status;
}
return status;
if (status > INT32_MAX)
return -1;
return (int)status;
}
BOOL rpc_client_write_call(rdpRpc* rpc, wStream* s, UINT16 opnum)