From 1c3d0ba741b0feb5ae405f380e7eea184c8a1282 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 12 Sep 2013 15:56:55 -0700 Subject: [PATCH] Add missing length to dir query response. --- src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages.c b/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages.c index d4dc5295..76d96558 100644 --- a/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages.c +++ b/src/protocols/rdp/guac_rdpdr/rdpdr_fs_messages.c @@ -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, 16); + output_stream = Stream_New(NULL, 20); /* Write header */ Stream_Write_UINT16(output_stream, RDPDR_CTYP_CORE); @@ -392,6 +392,7 @@ void guac_rdpdr_fs_process_query_directory(guac_rdpdr_device* device, wStream* i Stream_Write_UINT32(output_stream, device->device_id); Stream_Write_UINT32(output_stream, completion_id); Stream_Write_UINT32(output_stream, STATUS_NO_MORE_FILES); + Stream_Write_UINT32(output_stream, 0); svc_plugin_send((rdpSvcPlugin*) device->rdpdr, output_stream); guac_client_log_info(device->rdpdr->client, "Sent STATUS_NO_MORE_FILES");