Merge pull request #2961 from nfedera/nf-fix-image-copy-segfault

codec/color: fix segfault in freerdp_image32_copy
This commit is contained in:
Bernhard Miklautz 2015-11-03 12:22:22 +01:00
commit b83356a0b3

View File

@ -3444,8 +3444,8 @@ int freerdp_image32_copy(BYTE* pDstData, DWORD DstFormat, int nDstStep, int nXDs
pSrcPixel++;
}
pSrcPixel = (UINT32*) &((BYTE*) pSrcPixel)[nSrcStep];
pDstPixel = (BYTE*) &((BYTE*) pDstPixel)[nDstStep];
pSrcPixel = (UINT32*) &((BYTE*) pSrcPixel)[nSrcPad];
pDstPixel = (BYTE*) &((BYTE*) pDstPixel)[nDstPad];
}
return 1;