CVS: rdesktop orders.c,1.39,1.40

Jeroen Meijer <[email protected]>
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3587

Modified Files:
	orders.c 
Log Message:
Improve parsing of unknown text2 order members

Index: orders.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/orders.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** orders.c	12 Jul 2004 21:07:39 -0000	1.39
--- orders.c	16 Feb 2005 22:28:17 -0000	1.40
***************
*** 607,613 ****
  		in_uint16_le(s, os->boxbottom);
  
! 	if (present & 0x004000)	/* fix for connecting to a server that */
! 		in_uint8s(s, 10);	/* was disconnected with mstsc.exe */
! 	/* 0x008000, 0x020000, and 0x040000 are present too ??? */
  
  	if (present & 0x080000)
--- 607,631 ----
  		in_uint16_le(s, os->boxbottom);
  
! 	/*
! 	 * Unknown members, seen when connecting to a session that was disconnected with
! 	 * mstsc and with wintach's spreadsheet test.
! 	 */
! 	if (present & 0x004000)
! 		in_uint8s(s, 1);
! 
! 	if (present & 0x008000)
! 		in_uint8s(s, 1);
! 
! 	if (present & 0x010000)
! 	{
! 		in_uint8s(s, 1);	/* guessing the length here */
! 		warning("Unknown order state member (0x010000) in text2 order.\n");
! 	}
! 
! 	if (present & 0x020000)
! 		in_uint8s(s, 4);
! 
! 	if (present & 0x040000)
! 		in_uint8s(s, 4);
  
  	if (present & 0x080000)



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.