Commit 404b8202 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

gdi32/tests: Skip the tests if the pen type is not supported.

parent b5ad5d35
......@@ -81,7 +81,11 @@ static void test_logpen(void)
lp.lopnColor = pen[i].color;
SetLastError(0xdeadbeef);
hpen = CreatePenIndirect(&lp);
ok(hpen != 0, "CreatePen error %d\n", GetLastError());
if(hpen == 0 && GetLastError() == ERROR_INVALID_PARAMETER)
{
win_skip("No support for pen style %u (%d)\n", pen[i].style, i);
continue;
}
obj_type = GetObjectType(hpen);
ok(obj_type == OBJ_PEN, "wrong object type %u\n", obj_type);
......
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