Changeset 31724 in vbox
- Timestamp:
- Aug 17, 2010 12:03:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.cpp
r31720 r31724 55 55 int rc = VINF_SUCCESS; 56 56 RTR0MEMOBJ MemObj = NIL_RTR0MEMOBJ; 57 uint32_t fAccess = RTMEM_PROT_READ | (fWriteAccess ? RTMEM_PROT_WRITE : 0);57 uint32_t fAccess; 58 58 59 59 /* Zero size buffers shouldn't be locked. */ … … 108 108 * know they aren't pagable. 109 109 */ 110 fAccess = RTMEM_PROT_READ | (fWriteAccess ? RTMEM_PROT_WRITE : 0); 110 111 if ((fFlags & VBGLR0_HGCMCALL_F_MODE_MASK) == VBGLR0_HGCMCALL_F_USER) 111 112 rc = RTR0MemObjLockUser(&MemObj, (RTR3PTR)pv, u32Size, fAccess, NIL_RTR0PROCESS);
Note:
See TracChangeset
for help on using the changeset viewer.