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.