VirtualBox

Changeset 68502 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Aug 22, 2017 12:01:40 PM (7 years ago)
Author:
vboxsync
Message:

VBoxGuestR3Lib: Fixed clipboard and guest control breakage since r117608.

Location:
trunk/src/VBox/Additions/common/VBoxGuestLib
Files:
4 edited

Legend:

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

    r68465 r68502  
    8181    VbglHGCMParmUInt32Set(&Msg.formats, 0);
    8282
    83     int rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));
     83    int rc = VbglR3HGCMCallRaw(&Msg.hdr, sizeof(Msg));
    8484    if (RT_SUCCESS(rc))
    8585    {
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibDragAndDrop.cpp

    r68471 r68502  
    19741974    }
    19751975
    1976     int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
     1976    int rc = VbglR3HGCMCallRaw(&Msg.hdr, sizeof(Msg));
    19771977    if (RT_SUCCESS(rc))
    19781978    {
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibGuestCtrl.cpp

    r68465 r68502  
    8989    VbglHGCMParmUInt32Set(&Msg.num_parms, 0);
    9090
    91     int rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));
     91    int rc = VbglR3HGCMCallRaw(&Msg.hdr, sizeof(Msg));
    9292    if (RT_SUCCESS(rc))
    9393    {
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibHGCM.cpp

    r68465 r68502  
    8282}
    8383
     84
     85/**
     86 * Makes a fully prepared HGCM call, but don't return the result.
     87 *
     88 * @returns VBox status code.
     89 * @param   pInfo           Fully prepared HGCM call info.
     90 * @param   cbInfo          Size of the info.  This may sometimes be larger than
     91 *                          what the parameter count indicates because of
     92 *                          parameter changes between versions and such.
     93 */
     94VBGLR3DECL(int) VbglR3HGCMCallRaw(VBoxGuestHGCMCallInfo *pInfo, size_t cbInfo)
     95{
     96    /* Expect caller to have filled in pInfo. */
     97    Assert(sizeof(*pInfo) + pInfo->cParms * sizeof(HGCMFunctionParameter) <= cbInfo);
     98    Assert(pInfo->u32ClientID != 0);
     99
     100    return vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(cbInfo), pInfo, cbInfo);
     101}
     102
    84103/**
    85104 * Makes a fully prepared HGCM call.
     
    93112VBGLR3DECL(int) VbglR3HGCMCall(VBoxGuestHGCMCallInfo *pInfo, size_t cbInfo)
    94113{
    95     /* Expect caller to have filled in pInfo. */
    96     Assert(sizeof(*pInfo) + pInfo->cParms * sizeof(HGCMFunctionParameter) <= cbInfo);
    97     Assert(pInfo->u32ClientID != 0);
    98 
    99     int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(cbInfo), pInfo, cbInfo);
     114    int rc = VbglR3HGCMCallRaw(pInfo, cbInfo);
    100115    if (RT_SUCCESS(rc))
    101116        rc = pInfo->result;
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