[windows client] [cliprdr] Translate clientside format IDs to serverside format IDs in cl->sv data request
@@ -1300,12 +1300,15 @@ static UINT cliprdr_send_format_list(wfClipboard* clipboard)
static UINT cliprdr_send_data_request(wfClipboard* clipboard, UINT32 formatId)
{
UINT rc;
+ UINT32 remoteFormatId;
CLIPRDR_FORMAT_DATA_REQUEST formatDataRequest;
if (!clipboard || !clipboard->context || !clipboard->context->ClientFormatDataRequest)
return ERROR_INTERNAL_ERROR;
- formatDataRequest.requestedFormatId = formatId;
+ remoteFormatId = get_remote_format_id(clipboard, formatId);
+
+ formatDataRequest.requestedFormatId = remoteFormatId;
clipboard->requestedFormatId = formatId;
rc = clipboard->context->ClientFormatDataRequest(clipboard->context, &formatDataRequest);
