Merge pull request #2961 from nfedera/nf-fix-image-copy-segfault
codec/color: fix segfault in freerdp_image32_copy
This commit is contained in:
commit
b83356a0b3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user