Fix query directory response (missing final null byte).

This commit is contained in:
Michael Jumper 2013-09-14 12:05:50 -07:00
parent 98a1a494cd
commit dd1761790a

View File

@ -382,7 +382,7 @@ void guac_rdpdr_fs_process_query_directory(guac_rdpdr_device* device, wStream* i
* Handle errors as a lack of files.
*/
output_stream = Stream_New(NULL, 20);
output_stream = Stream_New(NULL, 21);
/* Write header */
Stream_Write_UINT16(output_stream, RDPDR_CTYP_CORE);
@ -393,6 +393,7 @@ void guac_rdpdr_fs_process_query_directory(guac_rdpdr_device* device, wStream* i
Stream_Write_UINT32(output_stream, completion_id);
Stream_Write_UINT32(output_stream, STATUS_NO_MORE_FILES);
Stream_Write_UINT32(output_stream, 0);
Stream_Write_UINT8(output_stream, 0);
svc_plugin_send((rdpSvcPlugin*) device->rdpdr, output_stream);
guac_client_log_info(device->rdpdr->client, "Sent STATUS_NO_MORE_FILES");