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:
parent
b9f44e00a8
commit
2661541740
7
xclip.c
7
xclip.c
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user