[PATCH 2/4] d3d9/tests: Don't test functions directly when reporting GetLastError()

Henri Verbeet hverbeet at gmail.com
Mon Jan 4 09:22:54 CST 2021


On Sat, 19 Dec 2020 at 15:54, André Hentschel <nerv at dawncrow.de> wrote:
> @@ -14159,8 +14159,8 @@ static void test_multi_adapter(void)
>          ok(!!monitor, "Adapter %u: Failed to get monitor.\n", i);
>
>          monitor_info.cbSize = sizeof(monitor_info);
> -        ok(GetMonitorInfoA(monitor, (MONITORINFO *)&monitor_info),
> -                "Adapter %u: Failed to get monitor info, error %#x.\n", i, GetLastError());
> +        ret = GetMonitorInfoA(monitor, (MONITORINFO *)&monitor_info);
> +        ok(!ret, "Adapter %u: Failed to get monitor info, error %#x.\n", i, GetLastError());
>
This changes behaviour.



More information about the wine-devel mailing list