From: Rémi Bernon <rbernon@codeweavers.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59257 --- dlls/winewayland.drv/wayland_data_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/winewayland.drv/wayland_data_device.c b/dlls/winewayland.drv/wayland_data_device.c index e36c0cc9229..1a2cd27fe80 100644 --- a/dlls/winewayland.drv/wayland_data_device.c +++ b/dlls/winewayland.drv/wayland_data_device.c @@ -268,9 +268,9 @@ static struct data_device_format *data_device_format_for_mime_type(const char *m 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