clipboard file: Implement MS-RDPECLIP 3.1.5.4.7 compliance

If the requested file data could not be retrieved or the sender received
an unsuccessful Format List Response PDU (section 3.1.5.2.4), then the
clipHeader field MUST contain the CB_RESPONSE_FAIL (0x0002) flag and the
requestedFileContentsData field MUST contain no data (zero-length).

https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpeclip/5d3991e9-440d-4e4d-8b8d-391c324c4007

Fixes #1997.
This commit is contained in:
Koichiro IWAO
2021-09-15 18:20:15 +09:00
parent e1bbef99aa
commit ad13956b12
2 changed files with 47 additions and 2 deletions
+1
View File
@@ -35,6 +35,7 @@ clipboard_c2s_in_files(struct stream *s, char *file_list);
int
clipboard_request_file_size(int stream_id, int lindex);
int
clipboard_request_file_data(int stream_id, int lindex, int offset,
int request_bytes);