Dan Kegel : gdiplus: GdipLoadImageFromStream: initialize variable.

Alexandre Julliard julliard at winehq.org
Wed Apr 23 07:59:49 CDT 2008


Module: wine
Branch: master
Commit: 8c8262510dbd1595bda8970bc59b389b0597cf81
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8c8262510dbd1595bda8970bc59b389b0597cf81

Author: Dan Kegel <dank at kegel.com>
Date:   Tue Apr 22 16:52:56 2008 -0700

gdiplus: GdipLoadImageFromStream: initialize variable.

---

 dlls/gdiplus/image.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index 3de6ff0..a89b6ea 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);
 




More information about the wine-cvs mailing list