VirtualBox

Changeset 25793 in vbox


Ignore:
Timestamp:
Jan 13, 2010 3:03:45 AM (15 years ago)
Author:
vboxsync
Message:

semrw-*generic.cpp: Corrected the c&p invalid handle errors in RTSemRWGetWriterReadRecursion, RTSemRWGetWriteRecursion and RTSemRWIsWriteOwner.

Location:
trunk/src/VBox/Runtime/generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/semrw-generic.cpp

    r25748 r25793  
    861861     * Validate handle.
    862862     */
    863     AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
    864     AssertReturn(pThis->u32Magic == RTSEMRW_MAGIC, VERR_INVALID_HANDLE);
     863    AssertPtrReturn(pThis, false);
     864    AssertReturn(pThis->u32Magic == RTSEMRW_MAGIC, false);
    865865
    866866    /*
     
    882882     * Validate handle.
    883883     */
    884     AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
    885     AssertReturn(pThis->u32Magic == RTSEMRW_MAGIC, VERR_INVALID_HANDLE);
     884    AssertPtrReturn(pThis, 0);
     885    AssertReturn(pThis->u32Magic == RTSEMRW_MAGIC, 0);
    886886
    887887    /*
     
    900900     * Validate handle.
    901901     */
    902     AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
    903     AssertReturn(pThis->u32Magic == RTSEMRW_MAGIC, VERR_INVALID_HANDLE);
     902    AssertPtrReturn(pThis, 0);
     903    AssertReturn(pThis->u32Magic == RTSEMRW_MAGIC, 0);
    904904
    905905    /*
  • trunk/src/VBox/Runtime/generic/semrw-lockless-generic.cpp

    r25751 r25793  
    849849     */
    850850    struct RTSEMRWINTERNAL *pThis = hRWSem;
    851     AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
    852     AssertReturn(pThis->u32Magic == RTSEMRW_MAGIC, VERR_INVALID_HANDLE);
     851    AssertPtrReturn(pThis, false);
     852    AssertReturn(pThis->u32Magic == RTSEMRW_MAGIC, false);
    853853
    854854    /*
     
    869869     */
    870870    struct RTSEMRWINTERNAL *pThis = hRWSem;
    871     AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
    872     AssertReturn(pThis->u32Magic == RTSEMRW_MAGIC, VERR_INVALID_HANDLE);
     871    AssertPtrReturn(pThis, 0);
     872    AssertReturn(pThis->u32Magic == RTSEMRW_MAGIC, 0);
    873873
    874874    /*
     
    886886     */
    887887    struct RTSEMRWINTERNAL *pThis = hRWSem;
    888     AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
    889     AssertReturn(pThis->u32Magic == RTSEMRW_MAGIC, VERR_INVALID_HANDLE);
     888    AssertPtrReturn(pThis, 0);
     889    AssertReturn(pThis->u32Magic == RTSEMRW_MAGIC, 0);
    890890
    891891    /*
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