gdiplus/tests: Must define biClrUsed when calling CreateDIBSection.

This commit is contained in:
Dan Kegel 2011-10-13 13:47:10 -07:00 committed by Alexandre Julliard
parent a9fcaed610
commit fa4cafd80e
1 changed files with 1 additions and 0 deletions

View File

@ -886,6 +886,7 @@ static void test_GdipCreateBitmapFromHBITMAP(void)
bmi.bmiHeader.biBitCount = 24; bmi.bmiHeader.biBitCount = 24;
bmi.bmiHeader.biPlanes = 1; bmi.bmiHeader.biPlanes = 1;
bmi.bmiHeader.biCompression = BI_RGB; bmi.bmiHeader.biCompression = BI_RGB;
bmi.bmiHeader.biClrUsed = 0;
hbm = CreateDIBSection(hdc, &bmi, DIB_RGB_COLORS, (void**)&bits, NULL, 0); hbm = CreateDIBSection(hdc, &bmi, DIB_RGB_COLORS, (void**)&bits, NULL, 0);
ok(hbm != NULL, "CreateDIBSection failed\n"); ok(hbm != NULL, "CreateDIBSection failed\n");