Dan Kegel : gdiplus/tests: Initialize buffer in test_GdipCreateBitmapFromHBITMAP.
Module: wine Branch: master Commit: c35c7a683e7843274ee4e1673b472a0c46075284 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c35c7a683e7843274ee4e1673b... Author: Dan Kegel <dank(a)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);
participants (1)
-
Alexandre Julliard