[PATCH 1/2] gdiplus: Allocate enough space for BITMAPINFO in GdipCreateTextureIA.
Nikolay Sivov
bunglehead at gmail.com
Sun Sep 28 14:53:01 CDT 2008
Lei Zhang wrote:
> @@ -512,8 +512,11 @@ GpStatus WINGDIPAPI GdipCreateTextureIA(GpImage *image,
> IPicture_get_CurDC(image->picture, &hdc);
> bm_is_selected = (hdc != 0);
>
> - bmi.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
> - bmi.bmiHeader.biBitCount = 0;
> + pbmi = GdipAlloc(sizeof(BITMAPINFOHEADER) + 256 * sizeof(RGBQUAD));
Why 256?
More information about the wine-patches
mailing list