diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 3de6ff01e1d..a89b6ea0b7d 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -759,6 +759,7 @@ GpStatus WINGDIPAPI GdipLoadImageFromStream(IStream* stream, GpImage **image) IPicture_get_Handle(pic, &hbm); IPicture_get_CurDC(pic, &hdc); + ZeroMemory(&bmi, sizeof(bmi)); bmch = (BITMAPCOREHEADER*) (&bmi.bmiHeader); bmch->bcSize = sizeof(BITMAPCOREHEADER);