Commit f0ebaffc authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

gdi32/tests: Remove tests for VidPnSourceId.

VidPnSourceId may be zero for non-primary adapters. Signed-off-by: 's avatarZhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 03b4bffb
......@@ -86,11 +86,6 @@ static void test_D3DKMTOpenAdapterFromGdiDisplayName(void)
}
ok(open_adapter_gdi_desc.hAdapter, "Expect not null.\n");
if (display_device.StateFlags & DISPLAY_DEVICE_PRIMARY_DEVICE)
ok(open_adapter_gdi_desc.VidPnSourceId == 0, "Got unexpected value %#x.\n",
open_adapter_gdi_desc.VidPnSourceId);
else
ok(open_adapter_gdi_desc.VidPnSourceId, "Got unexpected value %#x.\n", open_adapter_gdi_desc.VidPnSourceId);
close_adapter_desc.hAdapter = open_adapter_gdi_desc.hAdapter;
status = pD3DKMTCloseAdapter(&close_adapter_desc);
......@@ -135,12 +130,6 @@ static void test_D3DKMTOpenAdapterFromHdc(void)
status = pD3DKMTOpenAdapterFromHdc(&open_adapter_hdc_desc);
todo_wine ok(status == STATUS_SUCCESS, "Got unexpected return code %#x.\n", status);
todo_wine ok(open_adapter_hdc_desc.hAdapter, "Expect not null.\n");
if (display_device.StateFlags & DISPLAY_DEVICE_PRIMARY_DEVICE)
ok(open_adapter_hdc_desc.VidPnSourceId == 0, "Got unexpected value %#x.\n",
open_adapter_hdc_desc.VidPnSourceId);
else
todo_wine ok(open_adapter_hdc_desc.VidPnSourceId, "Got unexpected value %#x.\n",
open_adapter_hdc_desc.VidPnSourceId);
DeleteDC(hdc);
if (status == STATUS_SUCCESS)
......
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