[PATCH 2/4] d3d9/tests: Don't test functions directly when reporting GetLastError()
André Hentschel
nerv at dawncrow.de
Wed Jan 6 14:19:11 CST 2021
Am 04.01.21 um 16:22 schrieb Henri Verbeet:
> 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.
>
oops, good catch!
More information about the wine-devel
mailing list