VirtualBox

Changeset 101143 in vbox


Ignore:
Timestamp:
Sep 18, 2023 11:15:59 AM (16 months ago)
Author:
vboxsync
Message:

IPRT/mem: build fix. bugref:10370

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/alloc-win.cpp

    r101142 r101143  
    142142#else
    143143        /** @todo The exec version of this doesn't really work well... */
    144         MEMORY_BASIC_INFORMATION MemInfo = { NULL }
     144        MEMORY_BASIC_INFORMATION MemInfo = { NULL };
    145145        SIZE_T cbRet = VirtualQuery(pv, &MemInfo, cb);
    146         Assert(cbRet > 0)
    147         if (cbRet >= 0 && MemInfo.Protect == PAGE_EXECUTE_READWRITE)
     146        Assert(cbRet > 0);
     147        if (cbRet > 0 && MemInfo.Protect == PAGE_EXECUTE_READWRITE)
    148148        {
    149149            DWORD      fIgn = 0;
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