diff --git a/include/freerdp/codec/color.h b/include/freerdp/codec/color.h index 9dab0df16..fd9532cad 100644 --- a/include/freerdp/codec/color.h +++ b/include/freerdp/codec/color.h @@ -376,16 +376,15 @@ typedef struct gdi_palette gdiPalette; FREERDP_API BOOL freerdp_image_copy(BYTE* pDstData, DWORD DstFormat, UINT32 nDstStep, UINT32 nXDst, UINT32 nYDst, UINT32 nWidth, UINT32 nHeight, const BYTE* pSrcData, DWORD SrcFormat, UINT32 nSrcStep, - UINT32 nXSrc, UINT32 nYSrc, const gdiPalette* palette, - UINT32 flags); + UINT32 nXSrc, UINT32 nYSrc, + const gdiPalette* WINPR_RESTRICT palette, UINT32 flags); /*** Same as freerdp_image_copy() but only for overlapping source and destination */ FREERDP_API BOOL freerdp_image_copy_overlap( - BYTE* WINPR_RESTRICT pDstData, DWORD DstFormat, UINT32 nDstStep, UINT32 nXDst, UINT32 nYDst, - UINT32 nWidth, UINT32 nHeight, const BYTE* WINPR_RESTRICT pSrcData, DWORD SrcFormat, - UINT32 nSrcStep, UINT32 nXSrc, UINT32 nYSrc, const gdiPalette* WINPR_RESTRICT palette, - UINT32 flags); + BYTE* pDstData, DWORD DstFormat, UINT32 nDstStep, UINT32 nXDst, UINT32 nYDst, UINT32 nWidth, + UINT32 nHeight, const BYTE* pSrcData, DWORD SrcFormat, UINT32 nSrcStep, UINT32 nXSrc, + UINT32 nYSrc, const gdiPalette* WINPR_RESTRICT palette, UINT32 flags); /*** Same as freerdp_image_copy() but only for non overlapping source and destination */ diff --git a/libfreerdp/codec/color.c b/libfreerdp/codec/color.c index 5344362f7..d59c4cccc 100644 --- a/libfreerdp/codec/color.c +++ b/libfreerdp/codec/color.c @@ -711,7 +711,7 @@ BOOL freerdp_image_copy_no_overlap(BYTE* WINPR_RESTRICT pDstData, DWORD DstForma BOOL freerdp_image_copy_overlap(BYTE* pDstData, DWORD DstFormat, UINT32 nDstStep, UINT32 nXDst, UINT32 nYDst, UINT32 nWidth, UINT32 nHeight, const BYTE* pSrcData, DWORD SrcFormat, UINT32 nSrcStep, UINT32 nXSrc, UINT32 nYSrc, - const gdiPalette* palette, UINT32 flags) + const gdiPalette* WINPR_RESTRICT palette, UINT32 flags) { const UINT32 dstByte = FreeRDPGetBytesPerPixel(DstFormat); const UINT32 srcByte = FreeRDPGetBytesPerPixel(SrcFormat); @@ -859,7 +859,7 @@ BOOL freerdp_image_copy_overlap(BYTE* pDstData, DWORD DstFormat, UINT32 nDstStep BOOL freerdp_image_copy(BYTE* pDstData, DWORD DstFormat, UINT32 nDstStep, UINT32 nXDst, UINT32 nYDst, UINT32 nWidth, UINT32 nHeight, const BYTE* pSrcData, DWORD SrcFormat, UINT32 nSrcStep, UINT32 nXSrc, UINT32 nYSrc, - const gdiPalette* palette, UINT32 flags) + const gdiPalette* WINPR_RESTRICT palette, UINT32 flags) { const UINT32 dstByte = FreeRDPGetBytesPerPixel(DstFormat); const UINT32 srcByte = FreeRDPGetBytesPerPixel(SrcFormat);