gdi32/tests: Remove tests for VidPnSourceId.

VidPnSourceId may be zero for non-primary adapters.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zhiyi Zhang 2020-05-24 22:20:54 +08:00 committed by Alexandre Julliard
parent 03b4bffbbb
commit f0ebaffc6a
1 changed files with 0 additions and 11 deletions

View File

@ -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)