Changeset 10839 in vbox for trunk/src/VBox/Runtime/r3
- Timestamp:
- Jul 23, 2008 7:48:51 PM (17 years ago)
- Location:
- trunk/src/VBox/Runtime/r3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/linux/semevent-linux.cpp
r8245 r10839 111 111 * Validate input. 112 112 */ 113 if (EventSem == NIL_RTSEMEVENT) /* don't bitch */ 114 return VERR_INVALID_HANDLE; 113 115 struct RTSEMEVENTINTERNAL *pThis = EventSem; 114 Assert Return(VALID_PTR(pThis) && pThis->iMagic == RTSEMEVENT_MAGIC,115 116 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 117 AssertReturn(pThis->iMagic == RTSEMEVENT_MAGIC, VERR_INVALID_HANDLE); 116 118 117 119 /* -
trunk/src/VBox/Runtime/r3/os2/sems-os2.cpp
r8245 r10839 66 66 RTDECL(int) RTSemEventDestroy(RTSEMEVENT EventSem) 67 67 { 68 if (EventSem == NIL_RTSEMEVENT) /* don't bitch */ 69 return VERR_INVALID_HANDLE; 70 68 71 /* 69 72 * Close semaphore handle. -
trunk/src/VBox/Runtime/r3/posix/semevent-posix.cpp
r8245 r10839 167 167 * Validate handle. 168 168 */ 169 if (EventSem == NIL_RTSEMEVENT) /* don't bitch */ 170 return VERR_INVALID_HANDLE; 169 171 if (!rtsemEventValid(EventSem)) 170 172 { -
trunk/src/VBox/Runtime/r3/win/sems-win.cpp
r8651 r10839 61 61 { 62 62 *pEventSem = (RTSEMEVENT)(void *)hev; 63 Assert(*pEventSem != NIL_RTSEMEVENT); 63 64 return VINF_SUCCESS; 64 65 } … … 69 70 RTDECL(int) RTSemEventDestroy(RTSEMEVENT EventSem) 70 71 { 72 if (EventSem == NIL_RTSEMEVENT) /* don't bitch */ 73 return VERR_INVALID_HANDLE; 74 71 75 /* 72 76 * Close semaphore handle.
Note:
See TracChangeset
for help on using the changeset viewer.