Merge pull request #10383 from akallabeth/clipboard-fix

[client,X11] fix clipboard locking
This commit is contained in:
akallabeth 2024-07-17 10:07:25 +02:00 committed by GitHub
commit fa0232048c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -926,14 +926,15 @@ static void xf_cliprdr_process_requested_data(xfClipboard* clipboard, BOOL hasDa
if (error)
WLog_ERR(TAG, "failed to serialize CLIPRDR_FILELIST: 0x%08X", error);
else
{
UINT32 formatId = ClipboardGetFormatId(clipboard->system, mime_uri_list);
UINT32 url_size = 0;
ClipboardLock(clipboard->system);
char* url = ClipboardGetData(clipboard->system, formatId, &url_size);
ClipboardUnlock(clipboard->system);
cliprdr_file_context_update_client_data(clipboard->file, url, url_size);
free(url);
}
free(file_array);
}