From: Rémi Bernon <rbernon@codeweavers.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59257 --- dlls/winemac.drv/clipboard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/winemac.drv/clipboard.c b/dlls/winemac.drv/clipboard.c index c1e6ebb6d5b..1ac9c1c5d83 100644 --- a/dlls/winemac.drv/clipboard.c +++ b/dlls/winemac.drv/clipboard.c @@ -338,9 +338,9 @@ static WINE_CLIPFORMAT* natural_format_for_format(UINT format_id) static ATOM register_clipboard_format(const WCHAR *name) { - ATOM atom; - if (NtAddAtom(name, lstrlenW(name) * sizeof(WCHAR), &atom)) return 0; - return atom; + UNICODE_STRING name_str; + RtlInitUnicodeString(&name_str, name); + return NtUserRegisterWindowMessage(&name_str); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10047