Commit 4e795a8d authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

user32: Improve QueryDisplayConfig() stub.

parent af89ccc5
......@@ -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)
......
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