GUAC-1389: Two clipboard formats should allocate two cells for said formats.
This commit is contained in:
parent
6764196527
commit
eadc3a91a9
@ -298,7 +298,7 @@ int guac_rdp_clipboard_end_handler(guac_user* user, guac_stream* stream) {
|
|||||||
guac_common_clipboard_append(rdp_client->clipboard, "", 1);
|
guac_common_clipboard_append(rdp_client->clipboard, "", 1);
|
||||||
|
|
||||||
/* Notify server that text data is now available */
|
/* Notify server that text data is now available */
|
||||||
format_list->formats = (UINT32*) malloc(sizeof(UINT32));
|
format_list->formats = (UINT32*) malloc(sizeof(UINT32) * 2);
|
||||||
format_list->formats[0] = CB_FORMAT_TEXT;
|
format_list->formats[0] = CB_FORMAT_TEXT;
|
||||||
format_list->formats[1] = CB_FORMAT_UNICODETEXT;
|
format_list->formats[1] = CB_FORMAT_UNICODETEXT;
|
||||||
format_list->num_formats = 2;
|
format_list->num_formats = 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user