mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 21:57:18 +00:00
gdiplus: Fix a copy outside allocated memory in GdipCreateTextureIA.
This commit is contained in:
parent
ba09567716
commit
e23ccb787d
|
@ -735,7 +735,7 @@ GpStatus WINGDIPAPI GdipCreateTextureIA(GpImage *image,
|
||||||
|
|
||||||
/* image is flipped */
|
/* image is flipped */
|
||||||
if(pbmi->bmiHeader.biHeight > 0){
|
if(pbmi->bmiHeader.biHeight > 0){
|
||||||
dibits += pbmi->bmiHeader.biSizeImage;
|
dibits += image_stride * (pbmi->bmiHeader.biHeight - 1);
|
||||||
image_stride *= -1;
|
image_stride *= -1;
|
||||||
textbits += stride * (n_height - 1);
|
textbits += stride * (n_height - 1);
|
||||||
stride *= -1;
|
stride *= -1;
|
||||||
|
|
Loading…
Reference in a new issue