VirtualBox

Changeset 81220 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Oct 11, 2019 8:19:05 AM (5 years ago)
Author:
vboxsync
Message:

Shared Clipboard/Transfers: Update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp

    r81212 r81220  
    774774    Msg.pvFilter.SetPtr(pOpenParms->pszFilter, pOpenParms->cbFilter);
    775775    Msg.cbPath.SetUInt32(pOpenParms->cbPath);
    776     Msg.pvFilter.SetPtr(pOpenParms->pszPath, pOpenParms->cbPath);
     776    Msg.pvPath.SetPtr(pOpenParms->pszPath, pOpenParms->cbPath);
     777    Msg.uHandle.SetUInt64(0);
    777778
    778779    int rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));
     
    17761777
    17771778    int rc;
     1779
     1780    bool fErrorSent = false; /* Whether an error has been reported back to the host already. */
    17781781
    17791782    switch (idMsg)
     
    20942097        {
    20952098            rc = VbglR3ClipboardEventGetNext(idMsg, cParms, pCmdCtx, pEvent);
     2099            if (RT_FAILURE(rc))
     2100                fErrorSent = true;
    20962101            break;
    20972102        }
     2103    }
     2104
     2105    if (   !fErrorSent
     2106        && RT_FAILURE(rc))
     2107    {
     2108        /* Report error back to the host. */
     2109        int rc2 = VbglR3ClipboardWriteError(pCmdCtx->uClientID, rc);
     2110        AssertRC(rc2);
    20982111    }
    20992112
     
    21582171        int rc2 = VbglR3ClipboardWriteError(pCtx->uClientID, rc);
    21592172        AssertRC(rc2);
    2160 
    2161    }
     2173    }
    21622174
    21632175    LogFlowFuncLeaveRC(rc);
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