Changeset 25793 in vbox
- Timestamp:
- Jan 13, 2010 3:03:45 AM (15 years ago)
- Location:
- trunk/src/VBox/Runtime/generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/generic/semrw-generic.cpp
r25748 r25793 861 861 * Validate handle. 862 862 */ 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); 865 865 866 866 /* … … 882 882 * Validate handle. 883 883 */ 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); 886 886 887 887 /* … … 900 900 * Validate handle. 901 901 */ 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); 904 904 905 905 /* -
trunk/src/VBox/Runtime/generic/semrw-lockless-generic.cpp
r25751 r25793 849 849 */ 850 850 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); 853 853 854 854 /* … … 869 869 */ 870 870 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); 873 873 874 874 /* … … 886 886 */ 887 887 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); 890 890 891 891 /*
Note:
See TracChangeset
for help on using the changeset viewer.