VirtualBox

Ignore:
Timestamp:
Aug 18, 2010 11:11:26 AM (14 years ago)
Author:
vboxsync
Message:

SysHlp.cpp: Unused variables on Windows.

File:
1 edited

Legend:

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

    r31724 r31748  
    5353int vbglLockLinear (void **ppvCtx, void *pv, uint32_t u32Size, bool fWriteAccess, uint32_t fFlags)
    5454{
    55     int         rc = VINF_SUCCESS;
    56     RTR0MEMOBJ  MemObj = NIL_RTR0MEMOBJ;
    57     uint32_t    fAccess;
     55    int         rc      = VINF_SUCCESS;
     56#ifdef RT_OS_WINDOWS
     57    RTR0MEMOBJ  MemObj  = NIL_RTR0MEMOBJ;
     58    uint32_t    fAccess = RTMEM_PROT_READ | (fWriteAccess ? RTMEM_PROT_WRITE : 0);
     59#endif
    5860
    5961    /* Zero size buffers shouldn't be locked. */
     
    7072
    7173    /** @todo just use IPRT here. the extra allocation shouldn't matter much...
    72      *        Then we can most all this up one level even. */
     74     *        Then we can move all this up one level even. */
    7375#ifdef RT_OS_WINDOWS
    7476    PMDL pMdl = IoAllocateMdl (pv, u32Size, FALSE, FALSE, NULL);
     
    108110     *       know they aren't pagable.
    109111     */
    110     fAccess = RTMEM_PROT_READ | (fWriteAccess ? RTMEM_PROT_WRITE : 0);
    111112    if ((fFlags & VBGLR0_HGCMCALL_F_MODE_MASK) == VBGLR0_HGCMCALL_F_USER)
    112113        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