From fa4cafd80eacea5b180aad3fc7c9deeb117b4fc0 Mon Sep 17 00:00:00 2001 From: Dan Kegel Date: Thu, 13 Oct 2011 13:47:10 -0700 Subject: [PATCH] gdiplus/tests: Must define biClrUsed when calling CreateDIBSection. --- dlls/gdiplus/tests/image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c index 44554a593dc..8535aad0a6e 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"); -- 2.11.4.GIT