From de493ba959365c3ba3d5c2bdf085134abb69ce0b Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 12 Oct 2019 13:49:57 -0700 Subject: [PATCH] GUACAMOLE-249: Send Format List Response PDU after successfully processing a Format List PDU. --- src/protocols/rdp/clipboard.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/protocols/rdp/clipboard.c b/src/protocols/rdp/clipboard.c index ec58c151..38d13948 100644 --- a/src/protocols/rdp/clipboard.c +++ b/src/protocols/rdp/clipboard.c @@ -191,6 +191,13 @@ static UINT guac_rdp_cliprdr_format_list(CliprdrClientContext* cliprdr, guac_rdp_clipboard* clipboard = (guac_rdp_clipboard*) cliprdr->custom; assert(clipboard != NULL); + CLIPRDR_FORMAT_LIST_RESPONSE format_list_response = { + .msgFlags = CB_RESPONSE_OK + }; + + /* Report successful processing of format list */ + cliprdr->ClientFormatListResponse(cliprdr, &format_list_response); + /* Prefer Unicode (in this case, UTF-16) */ if (guac_rdp_cliprdr_format_supported(format_list, CF_UNICODETEXT)) return guac_rdp_cliprdr_send_format_data_request(cliprdr, CF_UNICODETEXT);