- Timestamp:
- Nov 21, 2008 2:17:21 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
r14367 r14462 1 /* $Id :$ */1 /* $Id$ */ 2 2 /** @file 3 3 * VBoxGuest - Guest Additions Driver. … … 1052 1052 VBoxGuestHGCMCallInfo *pInfo, 1053 1053 uint32_t cMillies, bool fInterruptible, 1054 size_t cb Data, size_t *pcbDataReturned)1054 size_t cbExtra, size_t cbData, size_t *pcbDataReturned) 1055 1055 { 1056 1056 /* … … 1062 1062 return VERR_INVALID_PARAMETER; 1063 1063 } 1064 const size_t cbActual = sizeof(*pInfo) + pInfo->cParms * sizeof(HGCMFunctionParameter);1064 const size_t cbActual = cbExtra + sizeof(*pInfo) + pInfo->cParms * sizeof(HGCMFunctionParameter); 1065 1065 if (cbData < cbActual) 1066 1066 { … … 1263 1263 rc = VBoxGuestCommonIOCtl_HGCMCall(pDevExt, pSession, (VBoxGuestHGCMCallInfo *)pvData, RT_INDEFINITE_WAIT, 1264 1264 fInterruptible, 1265 cbData, pcbDataReturned);1265 0, cbData, pcbDataReturned); 1266 1266 } 1267 1267 else if (VBOXGUEST_IOCTL_STRIP_SIZE(iFunction) == VBOXGUEST_IOCTL_STRIP_SIZE(VBOXGUEST_IOCTL_HGCM_CALL_TIMED(0))) … … 1271 1271 rc = VBoxGuestCommonIOCtl_HGCMCall(pDevExt, pSession, &pInfo->info, pInfo->u32Timeout, 1272 1272 !!pInfo->fInterruptible || pSession->R0Process != NIL_RTR0PROCESS, 1273 cbData, pcbDataReturned);1273 RT_OFFSETOF(VBoxGuestHGCMCallInfoTimed, info), cbData, pcbDataReturned); 1274 1274 } 1275 1275 #endif /* VBOX_WITH_HGCM */
Note:
See TracChangeset
for help on using the changeset viewer.