diff --git a/libfreerdp/codec/color.c b/libfreerdp/codec/color.c index 10d46be82..e002f90e2 100644 --- a/libfreerdp/codec/color.c +++ b/libfreerdp/codec/color.c @@ -421,6 +421,7 @@ BOOL freerdp_image_copy_from_pointer_data( { UINT32 xorBytesPerPixel = xorBpp >> 3; xorStep = nWidth * xorBytesPerPixel; + xorStep += (xorStep % 2); if (xorBpp == 8 && !palette) {