VirtualBox

Changeset 91933 in vbox


Ignore:
Timestamp:
Oct 21, 2021 10:44:19 AM (3 years ago)
Author:
vboxsync
Message:

X11: Shared Clipboard: handle case when libXt reports empty clipboard buffer, bugref:10117.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp

    r90794 r91933  
    19211921#endif
    19221922
    1923     if (pvSrc == NULL)
     1923    /* If X11 clipboard buffer has no data, libXt can pass to XtGetSelectionValue()
     1924     * callback an empty string, in this case cbSrc is 0. */
     1925    if (pvSrc == NULL || cbSrc == 0)
    19241926    {
    19251927        /* The clipboard selection may have changed before we could get it. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette