Changeset 31749 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Aug 18, 2010 11:14:51 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64930
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/HGCMInternal.cpp
r31720 r31749 305 305 iParm, pSrcParm->type, cb, pSrcParm->u.Pointer.u.linearAddr, hObj)); 306 306 } 307 else if (cb > VBGLR0_MAX_HGCM_USER_PARM) 308 { 309 Log(("GstHGCMCall: id=%#x fn=%u parm=%u pv=%p cb=%#x > %#x -> out of range\n", 310 pCallInfo->u32ClientID, pCallInfo->u32Function, iParm, pSrcParm->u.Pointer.u.linearAddr, 311 cb, VBGLR0_MAX_HGCM_USER_PARM)); 312 return VERR_OUT_OF_RANGE; 313 } 307 314 else 308 315 { 309 bool fCopyIn;310 311 if (cb > VBGLR0_MAX_HGCM_USER_PARM)312 {313 Log(("GstHGCMCall: id=%#x fn=%u parm=%u pv=%p cb=%#x > %#x -> out of range\n",314 pCallInfo->u32ClientID, pCallInfo->u32Function, iParm, pSrcParm->u.Pointer.u.linearAddr,315 cb, VBGLR0_MAX_HGCM_USER_PARM));316 return VERR_OUT_OF_RANGE;317 }318 319 316 #ifndef USE_BOUNCE_BUFFERS 320 317 rc = RTR0MemObjLockUser(&hObj, (RTR3PTR)pSrcParm->u.Pointer.u.linearAddr, cb, fAccess, NIL_RTR0PROCESS); … … 339 336 * is probably going to be more massive than the current code, so 340 337 * it can wait till later. */ 341 fCopyIn =pSrcParm->type != VMMDevHGCMParmType_LinAddr_Out342 && pSrcParm->type != VMMDevHGCMParmType_LinAddr_Locked_Out;338 bool fCopyIn = pSrcParm->type != VMMDevHGCMParmType_LinAddr_Out 339 && pSrcParm->type != VMMDevHGCMParmType_LinAddr_Locked_Out; 343 340 if (cb <= PAGE_SIZE / 2 - 16) 344 341 {
Note:
See TracChangeset
for help on using the changeset viewer.