Dan Kegel : gdiplus/tests: Must define biClrUsed when calling CreateDIBSection.

Alexandre Julliard julliard at winehq.org
Fri Oct 14 14:14:47 CDT 2011


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

Author: Dan Kegel <dank at kegel.com>
Date:   Thu Oct 13 13:47:10 2011 -0700

gdiplus/tests: Must define biClrUsed when calling CreateDIBSection.

---

 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 44554a5..8535aad 100644
--- a/dlls/gdiplus/tests/image.c
+++ b/dlls/gdiplus/tests/image.c
@@ -886,6 +886,7 @@ static void test_GdipCreateBitmapFromHBITMAP(void)
     bmi.bmiHeader.biBitCount = 24;
     bmi.bmiHeader.biPlanes = 1;
     bmi.bmiHeader.biCompression = BI_RGB;
+    bmi.bmiHeader.biClrUsed = 0;
 
     hbm = CreateDIBSection(hdc, &bmi, DIB_RGB_COLORS, (void**)&bits, NULL, 0);
     ok(hbm != NULL, "CreateDIBSection failed\n");




More information about the wine-cvs mailing list