From a12215de3cc2c5be49506b3ac174b2ff346fce92 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 11 Jul 2021 16:27:58 +0200 Subject: [PATCH] Fix URI list length Apparently you're _not_ supposed to count the trailing lien feed. This would cause REAPER to freeze. --- src/wine-host/xdnd-proxy.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wine-host/xdnd-proxy.cpp b/src/wine-host/xdnd-proxy.cpp index 9cd84e3e..6dd3918a 100644 --- a/src/wine-host/xdnd-proxy.cpp +++ b/src/wine-host/xdnd-proxy.cpp @@ -624,8 +624,7 @@ void WineXdndProxy::handle_convert_selection( const xcb_selection_request_event_t& event) { xcb_change_property(x11_connection.get(), XCB_PROP_MODE_REPLACE, event.requestor, event.property, event.target, 8, - // +1 to account for the trailing null byte - dragged_files_uri_list.size() + 1, + dragged_files_uri_list.size(), dragged_files_uri_list.c_str()); xcb_flush(x11_connection.get());