Dan Kegel : gdiplus/tests: Initialize buffer in test_GdipCreateBitmapFromHBITMAP.

Alexandre Julliard julliard at winehq.org
Mon Feb 8 11:06:06 CST 2010


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

Author: Dan Kegel <dank at kegel.com>
Date:   Sat Feb  6 10:44:21 2010 -0800

gdiplus/tests: Initialize buffer in test_GdipCreateBitmapFromHBITMAP.

---

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

diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c
index d752f16..e7747e3 100644
--- a/dlls/gdiplus/tests/image.c
+++ b/dlls/gdiplus/tests/image.c
@@ -530,6 +530,7 @@ static void test_GdipCreateBitmapFromHBITMAP(void)
         GdipDisposeImage((GpImage*)gpbm);
     DeleteObject(hbm);
 
+    memset(buff, 0, sizeof(buff));
     hbm = CreateBitmap(WIDTH2, HEIGHT2, 1, 1, &buff);
     stat = GdipCreateBitmapFromHBITMAP(hbm, NULL, &gpbm);
     expect(Ok, stat);




More information about the wine-cvs mailing list