CVS: rdesktop xclip.c,1.32,1.33

Pierre Ossman <[email protected]> Mon, 27 Mar 2006 03:10:12 -0800
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25654

Modified Files:
	xclip.c 
Log Message:
Handle when server doesn't give us any clipboard data.


Index: xclip.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/xclip.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** xclip.c	27 Mar 2006 10:41:22 -0000	1.32
--- xclip.c	27 Mar 2006 11:10:09 -0000	1.33
***************
*** 822,825 ****
--- 822,832 ----
  	BOOL free_data = False;
  
+ 	if (length == 0)
+ 	{
+ 		xclip_refuse_selection(&selection_request);
+ 		has_selection_request = False;
+ 		return;
+ 	}
+ 
  	if (selection_request.target == format_string_atom || selection_request.target == XA_STRING)
  	{



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642