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