[PATCH 0/3] MR10047: winemac, winewayland, winex11: Register clipboard format with NtUserRegisterWindowMessage.
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
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
From: Rémi Bernon <rbernon@codeweavers.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59257 --- dlls/winex11.drv/clipboard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/winex11.drv/clipboard.c b/dlls/winex11.drv/clipboard.c index ee0015639b8..3f3473a4444 100644 --- a/dlls/winex11.drv/clipboard.c +++ b/dlls/winex11.drv/clipboard.c @@ -288,9 +288,9 @@ static struct clipboard_format *find_x11_format( Atom atom ) 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
participants (2)
-
Rémi Bernon -
Rémi Bernon (@rbernon)