VirtualBox

Changeset 70387 in vbox


Ignore:
Timestamp:
Dec 29, 2017 2:13:36 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119992
Message:

iprt/nt3fakes-r0drv-nt.cpp: fix for xp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/nt/nt3fakes-r0drv-nt.cpp

    r70362 r70387  
    359359
    360360        /* Check out the resource section, looking for VS_FIXEDFILEINFO. */
    361         __try
     361        __try /* (pointless) */
    362362        {
    363363            PIMAGE_SECTION_HEADER paShdrs = (PIMAGE_SECTION_HEADER)(pNtHdrs + 1);
     
    453453static bool rtR0Nt3InitModuleInfoOne(const char *pszImage, uint8_t const *pbCode, uint8_t **ppbModule, uint32_t *pcbModule)
    454454{
    455     uintptr_t const uImageAlign = _64K;
     455    uintptr_t const uImageAlign = _4K; /* XP may put the kernel at */
    456456
    457457    /* Align pbCode. */
     
    461461    for (uint32_t cbChecked = 0; cbChecked < _64M; cbChecked += uImageAlign, pbCode -= uImageAlign)
    462462    {
     463        if (!MmIsAddressValid((void *)pbCode))
     464            continue;
     465
    463466        uint32_t uZero     = 0;
    464467        uint32_t offNewHdr = 0;
    465         __try
     468        __try /* pointless */
    466469        {
    467470            uZero     = *(uint32_t const *)pbCode;
     
    478481        {
    479482            RT_CONCAT(IMAGE_NT_HEADERS,ARCH_BITS) NtHdrs;
    480             __try
     483            __try /* pointless */
    481484            {
    482485                NtHdrs = *(decltype(NtHdrs) const *)&pbCode[offNewHdr];
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