VirtualBox

Ignore:
Timestamp:
Mar 31, 2015 11:25:29 AM (10 years ago)
Author:
vboxsync
Message:

supHardNtVpFreeOrReplacePrivateExecMemory: Bugfix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyProcess-win.cpp

    r54998 r55026  
    16601660         * Query the region again, redo the free operation if there's still memory there.
    16611661         */
    1662         if (!NT_SUCCESS(rcNt) || !(pThis->fFlags & SUPHARDNTVP_F_EXEC_ALLOC_REPLACE_WITH_RW))
     1662        if (!NT_SUCCESS(rcNt))
    16631663            break;
    16641664        SIZE_T                      cbActual = 0;
     
    16721672                     MemInfo3.AllocationProtect, MemInfo3.Protect));
    16731673        supR3HardenedLogFlush();
    1674         if (pMemInfo->State == MEM_FREE)
     1674        if (MemInfo3.State == MEM_FREE || !(pThis->fFlags & SUPHARDNTVP_F_EXEC_ALLOC_REPLACE_WITH_RW))
    16751675            break;
    16761676        NtYieldExecution();
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