user32: Improve QueryDisplayConfig() stub.

Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Brendan Shanks 2020-05-04 18:08:30 -07:00 committed by Alexandre Julliard
parent af89ccc535
commit 4e795a8d81
2 changed files with 11 additions and 4 deletions

View File

@ -4509,7 +4509,17 @@ LONG WINAPI QueryDisplayConfig(UINT32 flags, UINT32 *numpathelements, DISPLAYCON
DISPLAYCONFIG_TOPOLOGY_ID *topologyid) DISPLAYCONFIG_TOPOLOGY_ID *topologyid)
{ {
FIXME("(%08x %p %p %p %p %p)\n", flags, numpathelements, pathinfo, numinfoelements, modeinfo, topologyid); FIXME("(%08x %p %p %p %p %p)\n", flags, numpathelements, pathinfo, numinfoelements, modeinfo, topologyid);
return ERROR_CALL_NOT_IMPLEMENTED;
if (!numpathelements || !numinfoelements)
return ERROR_INVALID_PARAMETER;
if (!*numpathelements || !*numinfoelements)
return ERROR_INVALID_PARAMETER;
if (!flags)
return ERROR_INVALID_PARAMETER;
return ERROR_NOT_SUPPORTED;
} }
/*********************************************************************** /***********************************************************************

View File

@ -1275,8 +1275,6 @@ static void test_query_display_config(void)
DISPLAYCONFIG_MODE_INFO mi[20]; DISPLAYCONFIG_MODE_INFO mi[20];
LONG ret; LONG ret;
todo_wine
{
ret = pQueryDisplayConfig(QDC_ALL_PATHS, NULL, NULL, NULL, NULL, NULL); ret = pQueryDisplayConfig(QDC_ALL_PATHS, NULL, NULL, NULL, NULL, NULL);
ok(ret == ERROR_INVALID_PARAMETER, "got %d\n", ret); ok(ret == ERROR_INVALID_PARAMETER, "got %d\n", ret);
@ -1324,7 +1322,6 @@ static void test_query_display_config(void)
ok(ret == ERROR_INSUFFICIENT_BUFFER || ret == ERROR_NOT_SUPPORTED, "got %d\n", ret); ok(ret == ERROR_INSUFFICIENT_BUFFER || ret == ERROR_NOT_SUPPORTED, "got %d\n", ret);
ok (paths == 1, "got %u\n", paths); ok (paths == 1, "got %u\n", paths);
ok (modes == 1, "got %u\n", modes); ok (modes == 1, "got %u\n", modes);
}
} }
static void test_display_config_get_device_info(void) static void test_display_config_get_device_info(void)