mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
[client,windows] ignore clipboard failures
This commit is contained in:
parent
73e4c11fa1
commit
5db5136bde
@ -2163,13 +2163,26 @@ wf_cliprdr_server_format_data_request(CliprdrClientContext* context,
|
||||
UINT rc = ERROR_INTERNAL_ERROR;
|
||||
if (res >= 0)
|
||||
{
|
||||
CLIPRDR_FORMAT_DATA_RESPONSE response = { .common = { .msgType = CB_FORMAT_DATA_RESPONSE,
|
||||
.msgFlags = CB_RESPONSE_OK,
|
||||
.dataLen = (uint32_t)res },
|
||||
.requestedFormatData = requestedFormatData };
|
||||
const CLIPRDR_FORMAT_DATA_RESPONSE response = {
|
||||
.common = { .msgType = CB_FORMAT_DATA_RESPONSE,
|
||||
.msgFlags = CB_RESPONSE_OK,
|
||||
.dataLen = (uint32_t)res },
|
||||
.requestedFormatData = requestedFormatData
|
||||
};
|
||||
|
||||
rc = clipboard->context->ClientFormatDataResponse(clipboard->context, &response);
|
||||
}
|
||||
else
|
||||
{
|
||||
const CLIPRDR_FORMAT_DATA_RESPONSE response = { .common = { .msgType =
|
||||
CB_FORMAT_DATA_RESPONSE,
|
||||
.msgFlags = CB_RESPONSE_FAIL,
|
||||
.dataLen = 0 },
|
||||
.requestedFormatData = NULL };
|
||||
|
||||
rc = clipboard->context->ClientFormatDataResponse(clipboard->context, &response);
|
||||
}
|
||||
|
||||
free(requestedFormatData);
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user