user32/tests: Test DisplayConfigGetDeviceInfo() GET_SOURCE_NAME with valid ID and invalid LUID.
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8949f57086
commit
894c6566ab
|
@ -1309,6 +1309,15 @@ static void test_QueryDisplayConfig_result(UINT32 flags,
|
|||
ok(!ret, "Expected 0, got %d\n", ret);
|
||||
ok(source_name.viewGdiDeviceName[0] != '\0', "Expected GDI device name, got empty string\n");
|
||||
|
||||
/* Test with an invalid adapter LUID */
|
||||
source_name.header.type = DISPLAYCONFIG_DEVICE_INFO_GET_SOURCE_NAME;
|
||||
source_name.header.size = sizeof(source_name);
|
||||
source_name.header.adapterId.LowPart = 0xFFFF;
|
||||
source_name.header.adapterId.HighPart = 0xFFFF;
|
||||
source_name.header.id = pi[i].sourceInfo.id;
|
||||
ret = pDisplayConfigGetDeviceInfo(&source_name.header);
|
||||
ok(ret == ERROR_GEN_FAILURE, "Expected GEN_FAILURE, got %d\n", ret);
|
||||
|
||||
todo_wine {
|
||||
target_name.header.type = DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_NAME;
|
||||
target_name.header.size = sizeof(target_name);
|
||||
|
|
Loading…
Reference in New Issue