Handle when server doesn't give us any clipboard data.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1208 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Pierre Ossman 2006-03-27 11:10:09 +00:00
parent b9f44e00a8
commit 2661541740

View File

@ -821,6 +821,13 @@ ui_clip_handle_data(uint8 * data, uint32 length)
{
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)
{
/* We're expecting a CF_TEXT response */