Changeset 24102 in vbox for trunk/src/VBox
- Timestamp:
- Oct 27, 2009 12:07:44 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/req.cpp
r24100 r24102 61 61 RTDECL(int) RTReqCreateQueue(PRTREQQUEUE *ppQueue) 62 62 { 63 *ppQueue = (PRTREQQUEUE)RTMemAllocZ(sizeof(RTREQQUEUE));64 if (!p pQueue)63 PRTREQQUEUE pQueue = (PRTREQQUEUE)RTMemAllocZ(sizeof(RTREQQUEUE)); 64 if (!pQueue) 65 65 return VERR_NO_MEMORY; 66 67 int rc = RTSemEventCreate(&(*ppQueue)->EventSem); 66 int rc = RTSemEventCreate(&pQueue->EventSem); 68 67 if (RT_SUCCESS(rc)) 69 RTMemFree(*ppQueue); 70 68 { 69 *ppQueue = pQueue; 70 return VINF_SUCCESS; 71 } 72 73 RTMemFree(*ppQueue); 71 74 return rc; 72 75 }
Note:
See TracChangeset
for help on using the changeset viewer.