/[rdesktop]/sourceforge.net/trunk/rdesktop/orders.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/orders.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 336 by jsorg71, Sun Mar 2 23:45:34 2003 UTC revision 349 by forsberg, Thu Mar 27 13:17:26 2003 UTC
# Line 605  process_text2(STREAM s, TEXT2_ORDER * os Line 605  process_text2(STREAM s, TEXT2_ORDER * os
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);
# Line 703  process_bmpcache(STREAM s) Line 703  process_bmpcache(STREAM s)
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  }  }
# Line 811  process_secondary_order(STREAM s) Line 815  process_secondary_order(STREAM s)
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);

Legend:
Removed from v.336  
changed lines
  Added in v.349

  ViewVC Help
Powered by ViewVC 1.1.26