[PATCH 2/2] user32/tests: Fix the clipboard format id vs. atom table checks.

Francois Gouget fgouget at codeweavers.com
Thu May 20 09:54:29 CDT 2021


On Thu, 20 May 2021, Francois Gouget wrote:
[...]
>  todo_wine
>  {
>      lstrcpyA(buf, "foo");
>      SetLastError(0xdeadbeef);
>      len = GlobalGetAtomNameA((ATOM)format_id, buf, ARRAY_SIZE(buf));
> -    ok(len == 0, "GlobalGetAtomNameA should fail\n");
> -    ok(GetLastError() == ERROR_INVALID_HANDLE, "err %d\n", GetLastError());
> +    ok(len == 0 || lstrcmpA(buf, "my_cool_clipboard_format") != 0,
> +       "format_id should not be a valid global atom\n");
> +    ok(len != 0 || GetLastError() == ERROR_INVALID_HANDLE,
> +       "err %d\n", GetLastError());

This last check does not work right with todo_wine().
Part 1 is independent and can go in. I'll resubmit part 2 later on.


-- 
Francois Gouget <fgouget at codeweavers.com>



More information about the wine-devel mailing list