VirtualBox

Ignore:
Timestamp:
Oct 7, 2021 8:40:03 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147345
Message:

X11/VBoxClient: Reverted most of r139955 because it's wrong and we do _need_ to write data to the host even when we failed to get it. The host would otherwise be waiting till it times out for a reply, possibly locking the host clipboard. bugref:10094

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/clipboard.cpp

    r87566 r91621  
    158158{
    159159    LogFlowFunc(("rcCompletion=%Rrc, Format=0x%x, pv=%p, cb=%RU32\n", rcCompletion, pReq->Format, pv, cb));
    160 
    161     if (RT_SUCCESS(rcCompletion)) /* Only write data if the request succeeded. */
    162     {
    163         AssertPtrReturnVoid(pv);
    164         AssertReturnVoid(pv);
    165 
    166         rcCompletion = VbglR3ClipboardWriteDataEx(&pCtx->CmdCtx, pReq->Format, pv, cb);
    167     }
     160    RT_NOREF(rcCompletion);
     161
     162    Assert((cb == 0 && pv == NULL) || (cb != 0 && pv != NULL));
     163    rcCompletion = VbglR3ClipboardWriteDataEx(&pCtx->CmdCtx, pReq->Format, pv, cb);
    168164
    169165    RTMemFree(pReq);
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