VirtualBox

Changeset 101145 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Sep 18, 2023 11:36:24 AM (17 months ago)
Author:
vboxsync
Message:

IPRT/mem: Windows fix. bugref:10370

File:
1 edited

Legend:

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

    r101144 r101145  
    143143        /** @todo The exec version of this doesn't really work well... */
    144144        MEMORY_BASIC_INFORMATION MemInfo = { NULL };
    145         SIZE_T cbRet = VirtualQuery(pv, &MemInfo, cb);
     145        SIZE_T cbRet = VirtualQuery(pv, &MemInfo, sizeof(MemInfo));
    146146        Assert(cbRet > 0);
    147147        if (cbRet > 0 && MemInfo.Protect == PAGE_EXECUTE_READWRITE)
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