From 8c8262510dbd1595bda8970bc59b389b0597cf81 Mon Sep 17 00:00:00 2001 From: Dan Kegel Date: Tue, 22 Apr 2008 16:52:56 -0700 Subject: [PATCH] gdiplus: GdipLoadImageFromStream: initialize variable. --- dlls/gdiplus/image.c | 1 + 1 file changed, 1 insertion(+) 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);