605 |
if (present & 0x002000) |
if (present & 0x002000) |
606 |
in_uint16_le(s, os->boxbottom); |
in_uint16_le(s, os->boxbottom); |
607 |
|
|
608 |
if (present & 0x004000) /* fix for connecting to a server that */ |
if (present & 0x004000) /* fix for connecting to a server that */ |
609 |
in_uint8s(s, 10); /* was disconnected with mstsc.exe */ |
in_uint8s(s, 10); /* was disconnected with mstsc.exe */ |
610 |
/* 0x008000, 0x020000, and 0x040000 are present too ??? */ |
/* 0x008000, 0x020000, and 0x040000 are present too ??? */ |
611 |
|
|
612 |
if (present & 0x080000) |
if (present & 0x080000) |
613 |
in_uint16_le(s, os->x); |
in_uint16_le(s, os->x); |
703 |
bitmap = ui_create_bitmap(width, height, bmpdata); |
bitmap = ui_create_bitmap(width, height, bmpdata); |
704 |
cache_put_bitmap(cache_id, cache_idx, bitmap); |
cache_put_bitmap(cache_id, cache_idx, bitmap); |
705 |
} |
} |
706 |
|
else |
707 |
|
{ |
708 |
|
DEBUG(("Failed to decompress bitmap data\n")); |
709 |
|
} |
710 |
|
|
711 |
xfree(bmpdata); |
xfree(bmpdata); |
712 |
} |
} |
815 |
|
|
816 |
/* Process an order PDU */ |
/* Process an order PDU */ |
817 |
void |
void |
818 |
process_orders(STREAM s) |
process_orders(STREAM s, uint16 num_orders) |
819 |
{ |
{ |
820 |
RDP_ORDER_STATE *os = &order_state; |
RDP_ORDER_STATE *os = &order_state; |
821 |
uint32 present; |
uint32 present; |
|
uint16 num_orders; |
|
822 |
uint8 order_flags; |
uint8 order_flags; |
823 |
int size, processed = 0; |
int size, processed = 0; |
824 |
BOOL delta; |
BOOL delta; |
825 |
|
|
|
in_uint8s(s, 2); /* pad */ |
|
|
in_uint16_le(s, num_orders); |
|
|
in_uint8s(s, 2); /* pad */ |
|
|
|
|
826 |
while (processed < num_orders) |
while (processed < num_orders) |
827 |
{ |
{ |
828 |
in_uint8(s, order_flags); |
in_uint8(s, order_flags); |