Commit fa4cafd8 authored by Dan Kegel's avatar Dan Kegel Committed by Alexandre Julliard

gdiplus/tests: Must define biClrUsed when calling CreateDIBSection.

parent a9fcaed6
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment