diff options
Diffstat (limited to 'rdp/rdp_rdp.c')
| -rw-r--r-- | rdp/rdp_rdp.c | 11 | 
1 files changed, 10 insertions, 1 deletions
| diff --git a/rdp/rdp_rdp.c b/rdp/rdp_rdp.c index d6026ba8..db8bb30c 100644 --- a/rdp/rdp_rdp.c +++ b/rdp/rdp_rdp.c @@ -563,7 +563,16 @@ rdp_rdp_process_bitmap_updates(struct rdp_rdp* self, struct stream* s)          {            for (x = 0; x < width; x++)            { -            in_uint16_le(s, ((unsigned short*)data)[x]); +            in_uint16_le(s, ((tui16*)data)[x]); +          } +        } +        else if (Bpp == 3) +        { +          for (x = 0; x < width; x++) +          { +            in_uint8(s, data[x * 3 + 0]); +            in_uint8(s, data[x * 3 + 1]); +            in_uint8(s, data[x * 3 + 2]);            }          }        } | 
