VirtualBox

Changeset 31724 in vbox


Ignore:
Timestamp:
Aug 17, 2010 12:03:29 PM (14 years ago)
Author:
vboxsync
Message:

Additions: compile fix

File:
1 edited

Legend:

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

    r31720 r31724  
    5555    int         rc = VINF_SUCCESS;
    5656    RTR0MEMOBJ  MemObj = NIL_RTR0MEMOBJ;
    57     uint32_t    fAccess = RTMEM_PROT_READ | (fWriteAccess ? RTMEM_PROT_WRITE : 0);
     57    uint32_t    fAccess;
    5858
    5959    /* Zero size buffers shouldn't be locked. */
     
    108108     *       know they aren't pagable.
    109109     */
     110    fAccess = RTMEM_PROT_READ | (fWriteAccess ? RTMEM_PROT_WRITE : 0);
    110111    if ((fFlags & VBGLR0_HGCMCALL_F_MODE_MASK) == VBGLR0_HGCMCALL_F_USER)
    111112        rc = RTR0MemObjLockUser(&MemObj, (RTR3PTR)pv, u32Size, fAccess, NIL_RTR0PROCESS);
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