gdi32/tests: Fix a few test failures on Win9x and WinMe.
This commit is contained in:
parent
814bfc0305
commit
9960ab2418
|
@ -2013,21 +2013,27 @@ static void test_bitmapinfoheadersize(void)
|
|||
|
||||
SetLastError(0xdeadbeef);
|
||||
hdib = CreateDIBSection(hdc, &bmi, 0, NULL, NULL, 0);
|
||||
ok(hdib != NULL, "CreateDIBSection error %d\n", GetLastError());
|
||||
ok(hdib != NULL ||
|
||||
broken(!hdib), /* Win98, WinMe */
|
||||
"CreateDIBSection error %d\n", GetLastError());
|
||||
DeleteObject(hdib);
|
||||
|
||||
bmi.bmiHeader.biSize = sizeof(BITMAPINFO);
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
hdib = CreateDIBSection(hdc, &bmi, 0, NULL, NULL, 0);
|
||||
ok(hdib != NULL, "CreateDIBSection error %d\n", GetLastError());
|
||||
ok(hdib != NULL ||
|
||||
broken(!hdib), /* Win98, WinMe */
|
||||
"CreateDIBSection error %d\n", GetLastError());
|
||||
DeleteObject(hdib);
|
||||
|
||||
bmi.bmiHeader.biSize++;
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
hdib = CreateDIBSection(hdc, &bmi, 0, NULL, NULL, 0);
|
||||
ok(hdib != NULL, "CreateDIBSection error %d\n", GetLastError());
|
||||
ok(hdib != NULL ||
|
||||
broken(!hdib), /* Win98, WinMe */
|
||||
"CreateDIBSection error %d\n", GetLastError());
|
||||
DeleteObject(hdib);
|
||||
|
||||
bmi.bmiHeader.biSize = sizeof(BITMAPV4HEADER);
|
||||
|
@ -2041,7 +2047,9 @@ static void test_bitmapinfoheadersize(void)
|
|||
|
||||
SetLastError(0xdeadbeef);
|
||||
hdib = CreateDIBSection(hdc, &bmi, 0, NULL, NULL, 0);
|
||||
ok(hdib != NULL, "CreateDIBSection error %d\n", GetLastError());
|
||||
ok(hdib != NULL ||
|
||||
broken(!hdib), /* Win95 */
|
||||
"CreateDIBSection error %d\n", GetLastError());
|
||||
DeleteObject(hdib);
|
||||
|
||||
memset(&bci, 0, sizeof(BITMAPCOREINFO));
|
||||
|
|
Loading…
Reference in New Issue