gdi32/tests: Don't fetch the bits into the DIB itself.

This commit is contained in:
Alexandre Julliard 2014-04-28 14:36:43 +02:00
parent c49bb25950
commit 47ed5655c5
1 changed files with 1 additions and 1 deletions

View File

@ -838,7 +838,7 @@ static void test_dibsections(void)
}
pbmi->bmiHeader.biClrUsed = 173;
memset( pbmi->bmiColors, 0xcc, 256 * sizeof(RGBQUAD) );
GetDIBits( hdc, hdib, 0, 1, bits, pbmi, DIB_RGB_COLORS );
GetDIBits( hdc, hdib, 0, 1, NULL, pbmi, DIB_RGB_COLORS );
ok( pbmi->bmiHeader.biClrUsed == 0, "wrong colors %u\n", pbmi->bmiHeader.biClrUsed );
for (i = 0; i < 256; i++)
{