gdiplus: Fix a copy outside allocated memory in GdipCreateTextureIA.

This commit is contained in:
Vincent Povirk 2009-09-04 09:49:32 -05:00 committed by Alexandre Julliard
parent ba09567716
commit e23ccb787d

View file

@ -735,7 +735,7 @@ GpStatus WINGDIPAPI GdipCreateTextureIA(GpImage *image,
/* image is flipped */
if(pbmi->bmiHeader.biHeight > 0){
dibits += pbmi->bmiHeader.biSizeImage;
dibits += image_stride * (pbmi->bmiHeader.biHeight - 1);
image_stride *= -1;
textbits += stride * (n_height - 1);
stride *= -1;