Merge pull request #5376 from kubistika/bugfix/rdpgfx-server-v10.6-PDUs
authorakallabeth <akallabeth@users.noreply.github.com>
Mon, 6 May 2019 13:32:32 +0000 (15:32 +0200)
committerGitHub <noreply@github.com>
Mon, 6 May 2019 13:32:32 +0000 (15:32 +0200)
rdpgfx: Fix GFX v10.6 PDUs parsing and naming according to the spec

1  2 
channels/rdpgfx/client/rdpgfx_main.c
channels/rdpgfx/server/rdpgfx_main.c

Simple merge
@@@ -1063,10 -1062,10 +1063,10 @@@ static UINT rdpgfx_send_map_surface_to_
  }
  
  static UINT rdpgfx_send_map_surface_to_scaled_window_pdu(RdpgfxServerContext* context,
 -        RDPGFX_MAP_SURFACE_TO_SCALED_WINDOW_PDU* pdu)
 +        const RDPGFX_MAP_SURFACE_TO_SCALED_WINDOW_PDU* pdu)
  {
        wStream* s = rdpgfx_server_single_packet_new(
-                        RDPGFX_CMDID_MAPSURFACETOWINDOW, 18);
+                        RDPGFX_CMDID_MAPSURFACETOWINDOW, 26);
  
        if (!s)
        {
@@@ -1282,10 -1280,10 +1281,10 @@@ static UINT rdpgfx_recv_qoe_frame_ackno
  }
  
  static UINT rdpgfx_send_map_surface_to_scaled_output_pdu(RdpgfxServerContext* context,
 -        RDPGFX_MAP_SURFACE_TO_SCALED_OUTPUT_PDU* pdu)
 +        const RDPGFX_MAP_SURFACE_TO_SCALED_OUTPUT_PDU* pdu)
  {
        wStream* s = rdpgfx_server_single_packet_new(
-                        RDPGFX_CMDID_MAPSURFACETOSCALEDOUTPUT, 12);
+                        RDPGFX_CMDID_MAPSURFACETOSCALEDOUTPUT, 20);
  
        if (!s)
        {