gdi32/tests: Fix some test failures on newer Win10 releases.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2018-11-13 12:03:35 +03:00 committed by Alexandre Julliard
parent 8fae94c57a
commit ce3e220c26
1 changed files with 3 additions and 3 deletions

View File

@ -1003,10 +1003,10 @@ static void test_bitmap_font_metrics(void)
memset(&gm, 0, sizeof(gm));
SetLastError(0xdeadbeef);
ret = GetGlyphOutlineA(hdc, 'A', GGO_METRICS, &gm, 0, NULL, &mat);
todo_wine {
todo_wine
ok(ret == GDI_ERROR, "GetGlyphOutline should fail for a bitmap font\n");
ok(GetLastError() == ERROR_CAN_NOT_COMPLETE, "expected ERROR_CAN_NOT_COMPLETE, got %u\n", GetLastError());
}
ret = GetLastError();
ok(ret == ERROR_CAN_NOT_COMPLETE || ret == 0xdeadbeef /* Win10 */, "Unexpected error %d.\n", ret);
bRet = GetTextMetricsA(hdc, &tm);
ok(bRet, "GetTextMetrics error %d\n", GetLastError());