VirtualBox

Changeset 80530 in vbox


Ignore:
Timestamp:
Sep 1, 2019 11:03:08 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133037
Message:

IPRT/semmutex-r0drv-nt.cpp: Fixed is-owned check. bugref:9218

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/semaphore.h

    r76585 r80530  
    663663 *
    664664 * @remarks The fast mutexes has sideeffects on IRQL on Windows hosts.  So use
    665  *          with care and test on windows with driver verifier.
     665 *          with care and test on windows with the driver verifier enabled.
    666666 *
    667667 * @{ */
     
    689689/**
    690690 * Request ownership of a fast mutex semaphore.
    691  *
    692  * The same thread may request a mutex semaphore multiple times,
    693  * a nested counter is kept to make sure it's released on the right
    694  * RTSemMutexRelease() call.
    695691 *
    696692 * @returns iprt status code.
  • trunk/src/VBox/Runtime/r0drv/nt/semmutex-r0drv-nt.cpp

    r76553 r80530  
    231231    return pThis->Mutex && pThis->Mutex->Owner != NULL;
    232232#else
    233     return KeReadStateMutex(&pThis->Mutex) == 1;
    234 #endif
    235 }
    236 
     233    return KeReadStateMutex(&pThis->Mutex) == 0;
     234#endif
     235}
     236
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette