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:
parent
af89ccc535
commit
4e795a8d81
|
@ -4509,7 +4509,17 @@ LONG WINAPI QueryDisplayConfig(UINT32 flags, UINT32 *numpathelements, DISPLAYCON
|
|||
DISPLAYCONFIG_TOPOLOGY_ID *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;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
|
@ -1275,8 +1275,6 @@ static void test_query_display_config(void)
|
|||
DISPLAYCONFIG_MODE_INFO mi[20];
|
||||
LONG ret;
|
||||
|
||||
todo_wine
|
||||
{
|
||||
ret = pQueryDisplayConfig(QDC_ALL_PATHS, NULL, NULL, NULL, NULL, NULL);
|
||||
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 (paths == 1, "got %u\n", paths);
|
||||
ok (modes == 1, "got %u\n", modes);
|
||||
}
|
||||
}
|
||||
|
||||
static void test_display_config_get_device_info(void)
|
||||
|
|
Loading…
Reference in New Issue