VirtualBox

Changeset 46577 in vbox for trunk/src/VBox/Runtime/r3/posix


Ignore:
Timestamp:
Jun 17, 2013 9:23:16 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86449
Message:

build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/allocex-r3-posix.cpp

    r46572 r46577  
    7171{
    7272    int   fProt = PROT_READ | PROT_WRITE | (fFlags & RTMEMALLOCEX_FLAGS_EXEC ? PROT_EXEC : 0);
    73     void *pv;
     73    void *pv    = NULL;
    7474    if (fFlags & RTMEMALLOCEX_FLAGS_16BIT_REACH)
    7575    {
     
    8181        uintptr_t uAddr     = fFlags & RTMEMALLOCEX_FLAGS_16BIT_REACH ? 0x1000  : _1M;
    8282        uintptr_t uAddrLast = _64K - uAddr - cbAlloc;
    83         while (uAddr < uAddrLast)
     83        while (uAddr <= uAddrLast)
    8484        {
    8585            pv = mmap((void *)uAddr, cbAlloc, fProt, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette