Fixed const warnings

This commit is contained in:
Armin Novak 2022-02-01 10:49:40 +01:00 committed by akallabeth
parent 628c465d38
commit 1f59dff316
2 changed files with 2 additions and 2 deletions

View File

@ -483,7 +483,7 @@ static int fastpath_recv_update_data(rdpFastPath* fastpath, wStream* s)
BYTE compression;
BYTE compressionFlags;
UINT32 DstSize = 0;
BYTE* pDstData = NULL;
const BYTE* pDstData = NULL;
rdpTransport* transport;
if (!fastpath || !s)

View File

@ -915,7 +915,7 @@ int rdp_recv_data_pdu(rdpRdp* rdp, wStream* s)
if (compressedType & PACKET_COMPRESSED)
{
UINT32 DstSize = 0;
BYTE* pDstData = NULL;
const BYTE* pDstData = NULL;
UINT16 SrcSize = compressedLength - 18;
if ((compressedLength < 18) || (Stream_GetRemainingLength(s) < SrcSize))