VirtualBox

Changeset 55007 in vbox


Ignore:
Timestamp:
Mar 30, 2015 2:18:15 PM (10 years ago)
Author:
vboxsync
Message:

supHardNt: Corrected loader lock ownership check. Turns out LockCount doesn't behave like expected, check RecursionCount instead to make a definite positive on ownership.

File:
1 edited

Legend:

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

    r54997 r55007  
    26272627        bool fOwnsLoaderLock = pLoaderLock
    26282628                            && pLoaderLock->OwningThread == (HANDLE)(uintptr_t)idCurrentThread
    2629                             && pLoaderLock->LockCount >= 0;
     2629                            && pLoaderLock->RecursionCount > 0;
    26302630        if (!fOwnsLoaderLock)
    26312631        {
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