diff --git a/libfreerdp/codec/nsc.c b/libfreerdp/codec/nsc.c index d1b594b96..c611b6a36 100644 --- a/libfreerdp/codec/nsc.c +++ b/libfreerdp/codec/nsc.c @@ -110,8 +110,8 @@ static BOOL nsc_decode(NSC_CONTEXT* context) return TRUE; } -static BOOL nsc_rle_decode(const BYTE* in, size_t inSize, BYTE* out, UINT32 outSize, - UINT32 originalSize) +static BOOL nsc_rle_decode(const BYTE* WINPR_RESTRICT in, size_t inSize, BYTE* WINPR_RESTRICT out, + UINT32 outSize, UINT32 originalSize) { UINT32 left = originalSize; @@ -432,9 +432,9 @@ BOOL nsc_context_set_parameters(NSC_CONTEXT* context, NSC_PARAMETER what, UINT32 } BOOL nsc_process_message(NSC_CONTEXT* context, UINT16 bpp, UINT32 width, UINT32 height, - const BYTE* data, UINT32 length, BYTE* pDstData, UINT32 DstFormat, - UINT32 nDstStride, UINT32 nXDst, UINT32 nYDst, UINT32 nWidth, - UINT32 nHeight, UINT32 flip) + const BYTE* WINPR_RESTRICT data, UINT32 length, + BYTE* WINPR_RESTRICT pDstData, UINT32 DstFormat, UINT32 nDstStride, + UINT32 nXDst, UINT32 nYDst, UINT32 nWidth, UINT32 nHeight, UINT32 flip) { wStream* s = NULL; wStream sbuffer = { 0 }; diff --git a/libfreerdp/codec/nsc_encode.c b/libfreerdp/codec/nsc_encode.c index 71393d9f7..c7c26aced 100644 --- a/libfreerdp/codec/nsc_encode.c +++ b/libfreerdp/codec/nsc_encode.c @@ -476,8 +476,8 @@ BOOL nsc_write_message(NSC_CONTEXT* context, wStream* s, const NSC_MESSAGE* mess return TRUE; } -BOOL nsc_compose_message(NSC_CONTEXT* context, wStream* s, const BYTE* data, UINT32 width, - UINT32 height, UINT32 scanline) +BOOL nsc_compose_message(NSC_CONTEXT* context, wStream* s, const BYTE* WINPR_RESTRICT data, + UINT32 width, UINT32 height, UINT32 scanline) { BOOL rc = 0; NSC_MESSAGE message = { 0 }; @@ -515,8 +515,8 @@ BOOL nsc_compose_message(NSC_CONTEXT* context, wStream* s, const BYTE* data, UIN return nsc_write_message(context, s, &message); } -BOOL nsc_decompose_message(NSC_CONTEXT* context, wStream* s, BYTE* bmpdata, UINT32 x, UINT32 y, - UINT32 width, UINT32 height, UINT32 rowstride, UINT32 format, +BOOL nsc_decompose_message(NSC_CONTEXT* context, wStream* s, BYTE* WINPR_RESTRICT bmpdata, UINT32 x, + UINT32 y, UINT32 width, UINT32 height, UINT32 rowstride, UINT32 format, UINT32 flip) { size_t size = Stream_GetRemainingLength(s);