Changeset 68502 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Aug 22, 2017 12:01:40 PM (7 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxGuestLib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibClipboard.cpp
r68465 r68502 81 81 VbglHGCMParmUInt32Set(&Msg.formats, 0); 82 82 83 int rc = VbglR3HGCMCall (&Msg.hdr, sizeof(Msg));83 int rc = VbglR3HGCMCallRaw(&Msg.hdr, sizeof(Msg)); 84 84 if (RT_SUCCESS(rc)) 85 85 { -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibDragAndDrop.cpp
r68471 r68502 1974 1974 } 1975 1975 1976 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));1976 int rc = VbglR3HGCMCallRaw(&Msg.hdr, sizeof(Msg)); 1977 1977 if (RT_SUCCESS(rc)) 1978 1978 { -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibGuestCtrl.cpp
r68465 r68502 89 89 VbglHGCMParmUInt32Set(&Msg.num_parms, 0); 90 90 91 int rc = VbglR3HGCMCall (&Msg.hdr, sizeof(Msg));91 int rc = VbglR3HGCMCallRaw(&Msg.hdr, sizeof(Msg)); 92 92 if (RT_SUCCESS(rc)) 93 93 { -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibHGCM.cpp
r68465 r68502 82 82 } 83 83 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 */ 94 VBGLR3DECL(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 84 103 /** 85 104 * Makes a fully prepared HGCM call. … … 93 112 VBGLR3DECL(int) VbglR3HGCMCall(VBoxGuestHGCMCallInfo *pInfo, size_t cbInfo) 94 113 { 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); 100 115 if (RT_SUCCESS(rc)) 101 116 rc = pInfo->result;
Note:
See TracChangeset
for help on using the changeset viewer.