Searched refs:AssertReturn (Results 26 - 50 of 640) sorted by relevance

1234567891011>>

/vbox/src/VBox/NetworkServices/NetLib/
H A DVBoxNetPortForwardString.cpp61 AssertReturn(pszRaw[0] == PF_ADDRESS_FIELD_STARTS, -1);
71 AssertReturn(cbRaw > 0, VERR_INVALID_PARAMETER);
81 AssertReturn(cbField < cbRaw, VERR_INVALID_PARAMETER);
89 AssertReturn(pszRaw[cbField] == PF_ADDRESS_FIELD_ENDS, -1);
105 AssertReturn(pszRaw[0] == PF_FIELD_SEPARATOR, -1);
169 AssertReturn(cbRaw > 0, VERR_INVALID_PARAMETER);
191 AssertReturn(cbRaw > 0, VERR_INVALID_PARAMETER);
245 AssertReturn(cbRaw > 14, VERR_INVALID_PARAMETER);
248 AssertReturn(pszRaw, VERR_NO_MEMORY);
263 AssertReturn(cbToke
[all...]
/vbox/src/VBox/Runtime/common/crypto/
H A Ddigest-core.cpp119 AssertReturn(hSrc->u32Magic == RTCRDIGESTINT_MAGIC, VERR_INVALID_HANDLE);
155 AssertReturn(pThis->u32Magic == RTCRDIGESTINT_MAGIC, VERR_INVALID_HANDLE);
178 AssertReturn(pThis->u32Magic == RTCRDIGESTINT_MAGIC, UINT32_MAX);
192 AssertReturn(pThis->u32Magic == RTCRDIGESTINT_MAGIC, UINT32_MAX);
211 AssertReturn(pThis->u32Magic == RTCRDIGESTINT_MAGIC, VERR_INVALID_HANDLE);
212 AssertReturn(pThis->uState == RTCRDIGEST_STATE_READY, VERR_INVALID_STATE);
224 AssertReturn(pThis->u32Magic == RTCRDIGESTINT_MAGIC, VERR_INVALID_HANDLE);
225 AssertReturn(pThis->uState == RTCRDIGEST_STATE_READY || pThis->uState == RTCRDIGEST_STATE_FINAL, VERR_INVALID_STATE);
237 AssertReturn(pThis->uState == RTCRDIGEST_STATE_FINAL, VERR_INVALID_STATE);
285 AssertReturn(pThi
[all...]
H A Dstore.cpp104 AssertReturn(pThis->u32Magic == RTCRSTOREINT_MAGIC, UINT32_MAX);
119 AssertReturn(pThis->u32Magic == RTCRSTOREINT_MAGIC, UINT32_MAX);
136 AssertReturn(pThis->u32Magic == RTCRSTOREINT_MAGIC, NULL);
173 AssertReturn(pThis->u32Magic == RTCRSTOREINT_MAGIC, VERR_INVALID_HANDLE);
175 AssertReturn(cbSrc > 16 && cbSrc < _1M, VERR_OUT_OF_RANGE);
201 AssertReturn(pThis->u32Magic == RTCRSTOREINT_MAGIC, VERR_INVALID_HANDLE);
217 AssertReturn(pThis->u32Magic == RTCRSTOREINT_MAGIC, VERR_INVALID_HANDLE);
234 AssertReturn(pThis->u32Magic == RTCRSTOREINT_MAGIC, NULL);
278 AssertReturn(pThis->u32Magic == RTCRSTOREINT_MAGIC, VERR_INVALID_HANDLE);
300 AssertReturn(pThi
[all...]
/vbox/src/VBox/Runtime/r3/posix/
H A Dpipe-posix.cpp130 AssertReturn(!(fFlags & ~RTPIPE_C_VALID_MASK), VERR_INVALID_PARAMETER);
221 AssertReturn(pThis->u32Magic == RTPIPE_MAGIC, VERR_INVALID_HANDLE);
226 AssertReturn(ASMAtomicCmpXchgU32(&pThis->u32Magic, ~RTPIPE_MAGIC, RTPIPE_MAGIC), VERR_INVALID_HANDLE);
246 AssertReturn(!(fFlags & ~RTPIPE_N_VALID_MASK), VERR_INVALID_PARAMETER);
247 AssertReturn(!!(fFlags & RTPIPE_N_READ) != !!(fFlags & RTPIPE_N_WRITE), VERR_INVALID_PARAMETER);
254 AssertReturn(fstat(hNative, &st) == 0, RTErrConvertFromErrno(errno));
258 AssertReturn(fFd != -1, VERR_INVALID_HANDLE);
295 AssertReturn(pThis->u32Magic == RTPIPE_MAGIC, -1);
323 AssertReturn(cUsers < RTPIPE_POSIX_USERS_MASK / 2, VERR_INTERNAL_ERROR_4); function
385 AssertReturn(cUser function
[all...]
/vbox/src/VBox/Runtime/r0drv/nt/
H A Dsemmutex-r0drv-nt.cpp73 AssertReturn(!(fFlags & ~RTSEMMUTEX_FLAGS_NO_LOCK_VAL), VERR_INVALID_PARAMETER);
101 AssertReturn(pThis->u32Magic == RTSEMMUTEX_MAGIC, VERR_INVALID_HANDLE);
106 AssertReturn(ASMAtomicCmpXchgU32(&pThis->u32Magic, RTSEMMUTEX_MAGIC_DEAD, RTSEMMUTEX_MAGIC), VERR_INVALID_HANDLE);
129 AssertReturn(pThis->u32Magic == RTSEMMUTEX_MAGIC, VERR_INVALID_HANDLE);
203 AssertReturn(pThis->u32Magic == RTSEMMUTEX_MAGIC, VERR_INVALID_HANDLE);
224 AssertReturn(pThis->u32Magic == RTSEMMUTEX_MAGIC, false);
/vbox/src/VBox/Runtime/common/vfs/
H A Dvfsbase.cpp119 AssertReturn((hVfs)->uMagic == RTVFS_MAGIC, (rcRet)); \
340 AssertReturn(pThis->enmType > RTVFSLOCKTYPE_INVALID && pThis->enmType < RTVFSLOCKTYPE_END, UINT32_MAX);
387 AssertReturn(pThis->enmType > RTVFSLOCKTYPE_INVALID && pThis->enmType < RTVFSLOCKTYPE_END, UINT32_MAX);
677 AssertReturn(hLock->enmType > RTVFSLOCKTYPE_INVALID && hLock->enmType < RTVFSLOCKTYPE_END, VERR_INVALID_HANDLE);
678 AssertReturn(hLock->cRefs > 0, VERR_INVALID_HANDLE);
719 AssertReturn(pObjOps->uVersion == RTVFSOBJOPS_VERSION, VERR_VERSION_MISMATCH);
720 AssertReturn(pObjOps->uEndMarker == RTVFSOBJOPS_VERSION, VERR_VERSION_MISMATCH);
769 AssertReturn(pThis->uMagic == RTVFSOBJ_MAGIC, UINT32_MAX);
867 AssertReturn(pThis->uMagic == RTVFSOBJ_MAGIC, UINT32_MAX);
878 AssertReturn(pThi
[all...]
/vbox/src/VBox/Additions/darwin/VBoxClient/
H A DVBoxClientClipboardHostToGuest.cpp51 AssertReturn(pData && cbDataSize && cbMemSize, VERR_INVALID_PARAMETER);
122 AssertReturn(rc == noErr, VERR_NOT_SUPPORTED);
160 AssertReturn(pData, VERR_INVALID_PARAMETER);
163 AssertReturn(cbDataSize > 0, VINF_SUCCESS);
170 AssertReturn(RT_SUCCESS(rc), rc);
172 AssertReturn(pDataInternal, VERR_NO_MEMORY);
213 AssertReturn(pData, VERR_INVALID_PARAMETER);
215 AssertReturn(cbDataSize > 0, VINF_SUCCESS);
218 AssertReturn(RT_SUCCESS(rc), rc);
H A DVBoxClientClipboardGuestToHost.cpp57 AssertReturn((rc == noErr) && (cItems > 0), fFormats);
137 AssertReturn(rc == noErr, VERR_INVALID_PARAMETER);
138 AssertReturn(cItems > 0, VERR_INVALID_PARAMETER);
149 AssertReturn(rc == noErr, VERR_INVALID_PARAMETER);
204 AssertReturn(pvData, VERR_INVALID_PARAMETER);
218 AssertReturn(cbData > 0, VERR_INVALID_PARAMETER);
223 AssertReturn(RT_SUCCESS(rc), rc);
226 AssertReturn(pwszWinTmp, VERR_NO_MEMORY);
/vbox/src/VBox/Runtime/common/string/
H A DRTStrCatEx.cpp38 AssertReturn(pszDst2, VERR_INVALID_PARAMETER);
/vbox/src/VBox/Runtime/generic/
H A DRTFileReadAllEx-generic.cpp40 AssertReturn(!(fFlags & ~RTFILE_RDALL_VALID_MASK), VERR_INVALID_PARAMETER);
H A Dtimerlr-generic.cpp152 AssertReturn(pThis->u32Magic == RTTIMERLR_MAGIC, VERR_INVALID_HANDLE);
153 AssertReturn(!pThis->fDestroyed, VERR_INVALID_HANDLE);
182 AssertReturn(pThis->u32Magic == RTTIMERLR_MAGIC, VERR_INVALID_HANDLE);
183 AssertReturn(!pThis->fDestroyed, VERR_INVALID_HANDLE);
215 AssertReturn(pThis->u32Magic == RTTIMERLR_MAGIC, VERR_INVALID_HANDLE);
216 AssertReturn(!pThis->fDestroyed, VERR_INVALID_HANDLE);
237 AssertReturn(pThis->u32Magic == RTTIMERLR_MAGIC, VERR_INVALID_HANDLE);
238 AssertReturn(!pThis->fDestroyed, VERR_INVALID_HANDLE);
/vbox/src/VBox/Runtime/r0drv/os2/
H A Dthread-r0drv-os2.cpp57 AssertReturn(pLIS, NIL_RTNATIVETHREAD);
121 AssertReturn(rc == 0, false);
127 AssertReturn(rc == 0, false);
186 AssertReturn(rc == 0, true);
/vbox/src/VBox/Runtime/r3/haiku/
H A DrtProcInitExePath-haiku.cpp53 AssertReturn((status == B_OK), VERR_INTERNAL_ERROR);
/vbox/src/VBox/Runtime/r3/
H A Dsocket.cpp427 AssertReturn(uNative != NIL_RTSOCKETNATIVE, VERR_INVALID_PARAMETER);
429 AssertReturn(uNative >= 0, VERR_INVALID_PARAMETER);
475 AssertReturn(pThis->u32Magic == RTSOCKET_MAGIC, UINT32_MAX);
547 AssertReturn(pThis->u32Magic == RTSOCKET_MAGIC, UINT32_MAX);
551 AssertReturn(cRefs != UINT32_MAX, UINT32_MAX);
565 AssertReturn(pThis->u32Magic == RTSOCKET_MAGIC, VERR_INVALID_HANDLE);
568 AssertReturn(cRefs != UINT32_MAX, UINT32_MAX);
581 AssertReturn(pThis->u32Magic == RTSOCKET_MAGIC, RTHCUINTPTR_MAX);
590 AssertReturn(pThis->u32Magic == RTSOCKET_MAGIC, VERR_INVALID_HANDLE);
591 AssertReturn(RTMemPoolRefCoun
[all...]
/vbox/src/VBox/Main/src-client/
H A DGuestDnDPrivate.cpp188 AssertReturn(cbData, VERR_INVALID_PARAMETER);
659 AssertReturn(sizeof(DragAndDropSvc::VBOXDNDCBHGACKOPDATA) == cbParms, VERR_INVALID_PARAMETER);
660 AssertReturn(DragAndDropSvc::CB_MAGIC_DND_HG_ACK_OP == pCBData->hdr.u32Magic, VERR_INVALID_PARAMETER);
672 AssertReturn(sizeof(DragAndDropSvc::VBOXDNDCBHGREQDATADATA) == cbParms, VERR_INVALID_PARAMETER);
673 AssertReturn(DragAndDropSvc::CB_MAGIC_DND_HG_REQ_DATA == pCBData->hdr.u32Magic, VERR_INVALID_PARAMETER);
686 AssertReturn(sizeof(DragAndDropSvc::VBOXDNDCBHGEVTPROGRESSDATA) == cbParms, VERR_INVALID_PARAMETER);
687 AssertReturn(DragAndDropSvc::CB_MAGIC_DND_HG_EVT_PROGRESS == pCBData->hdr.u32Magic, VERR_INVALID_PARAMETER);
699 AssertReturn(sizeof(DragAndDropSvc::VBOXDNDCBGHACKPENDINGDATA) == cbParms, VERR_INVALID_PARAMETER);
700 AssertReturn(DragAndDropSvc::CB_MAGIC_DND_GH_ACK_PENDING == pCBData->hdr.u32Magic, VERR_INVALID_PARAMETER);
714 AssertReturn(sizeo
[all...]
/vbox/src/VBox/Main/src-server/win/
H A Dsvchlp.cpp62 AssertReturn(aName, VERR_INVALID_PARAMETER);
91 AssertReturn(aName, VERR_INVALID_PARAMETER);
158 AssertReturn(aVal != NULL, VERR_INVALID_PARAMETER);
159 AssertReturn(aLen != 0, VERR_INVALID_PARAMETER);
166 AssertReturn(!ok || written == aLen, VERR_GENERAL_FAILURE);
200 AssertReturn(aVal != NULL, VERR_INVALID_PARAMETER);
201 AssertReturn(aLen != 0, VERR_INVALID_PARAMETER);
208 AssertReturn(!ok || read == aLen, VERR_GENERAL_FAILURE);
/vbox/src/VBox/GuestHost/DragAndDrop/
H A DDnDDir.cpp34 AssertReturn(cbDropDir, VERR_INVALID_PARAMETER);
77 AssertReturn(cbDropDir, VERR_INVALID_PARAMETER);
/vbox/src/VBox/Runtime/include/internal/
H A Dfileaio.h63 AssertReturn((pReq)->u32Magic == RTFILEAIOREQ_MAGIC, (rc)); \
80 AssertReturn((pCtx)->u32Magic == RTFILEAIOCTX_MAGIC, (rc)); \
/vbox/src/VBox/Runtime/r3/linux/
H A DRTSystemQueryDmiString-linux.cpp44 AssertReturn(cbBuf > 0, VERR_INVALID_PARAMETER);
46 AssertReturn(enmString > RTSYSDMISTR_INVALID && enmString < RTSYSDMISTR_END, VERR_INVALID_PARAMETER);
/vbox/src/bldprogs/
H A Dscmstream.cpp275 AssertReturn(offEol + pStream->paLines[iLine].enmEol <= cbFile, VERR_INTERNAL_ERROR_2);
279 AssertReturn(pStream->pch[offEol] == '\n', VERR_INTERNAL_ERROR_3);
282 AssertReturn(pStream->pch[offEol] == '\r', VERR_INTERNAL_ERROR_3);
283 AssertReturn(pStream->pch[offEol + 1] == '\n', VERR_INTERNAL_ERROR_3);
286 AssertReturn(iLine + 1 >= pStream->cLines, VERR_INTERNAL_ERROR_4);
289 AssertReturn(iLine + 1 >= pStream->cLines, VERR_INTERNAL_ERROR_5);
384 AssertReturn(!pStream->fWriteOrRead, NULL);
493 AssertReturn(!pStream->fWriteOrRead, pStream->cb);
543 AssertReturn(!pStream->fWriteOrRead, VERR_ACCESS_DENIED);
571 AssertReturn(pStrea
[all...]
/vbox/src/VBox/Additions/solaris/Virtio/
H A DVirtio-solaris.c55 AssertReturn(pDip, DDI_EINVAL);
56 AssertReturn(pDeviceOps, DDI_EINVAL);
57 AssertReturn(pHyperOps, DDI_EINVAL);
192 AssertReturn(pQueue->pQueue, NULL);
193 AssertReturn(pQueue->Ring.cDesc > 0, NULL);
/vbox/src/VBox/Runtime/r3/win/
H A Dpipe-win.cpp165 AssertReturn(!(fFlags & ~RTPIPE_C_VALID_MASK), VERR_INVALID_PARAMETER);
403 AssertReturn(pThis->u32Magic == RTPIPE_MAGIC, VERR_INVALID_HANDLE);
408 AssertReturn(ASMAtomicCmpXchgU32(&pThis->u32Magic, ~RTPIPE_MAGIC, RTPIPE_MAGIC), VERR_INVALID_HANDLE);
436 AssertReturn(!(fFlags & ~RTPIPE_N_VALID_MASK), VERR_INVALID_PARAMETER);
437 AssertReturn(!!(fFlags & RTPIPE_N_READ) != !!(fFlags & RTPIPE_N_WRITE), VERR_INVALID_PARAMETER);
443 AssertReturn(GetFileType(hNative) == FILE_TYPE_PIPE, VERR_INVALID_HANDLE);
449 AssertReturn(!(fInfo & PIPE_TYPE_MESSAGE), VERR_INVALID_HANDLE);
450 AssertReturn(cMaxInstances == 1, VERR_INVALID_HANDLE);
456 AssertReturn(!(fState & PIPE_NOWAIT), VERR_INVALID_HANDLE);
457 AssertReturn(!(fStat
[all...]
/vbox/src/VBox/Runtime/r3/os2/
H A Dpipe-os2.cpp121 AssertReturn(!(fFlags & ~RTPIPE_C_VALID_MASK), VERR_INVALID_PARAMETER);
235 AssertReturn(pThis->u32Magic == RTPIPE_MAGIC, VERR_INVALID_HANDLE);
240 AssertReturn(ASMAtomicCmpXchgU32(&pThis->u32Magic, ~RTPIPE_MAGIC, RTPIPE_MAGIC), VERR_INVALID_HANDLE);
266 AssertReturn(!(fFlags & ~RTPIPE_N_VALID_MASK), VERR_INVALID_PARAMETER);
267 AssertReturn(!!(fFlags & RTPIPE_N_READ) != !!(fFlags & RTPIPE_N_WRITE), VERR_INVALID_PARAMETER);
277 AssertReturn((ulType & 0x7) == HANDTYPE_PIPE, VERR_INVALID_HANDLE);
292 AssertReturn(Buf.PipeInfo.cbMaxInst == 1, VERR_INVALID_HANDLE);
303 AssertReturn(!(fPipeState & NP_TYPE_MESSAGE), VERR_INVALID_HANDLE);
304 AssertReturn(!(fPipeState & NP_READMODE_MESSAGE), VERR_INVALID_HANDLE);
305 AssertReturn((fPipeStat
[all...]
/vbox/src/VBox/Runtime/common/asn1/
H A Dasn1-basics.cpp80 AssertReturn(pAllocation->pAllocator != NULL, VERR_WRONG_ORDER);
81 AssertReturn(cbEntry > 0, VERR_INVALID_PARAMETER);
82 AssertReturn(cNew > cCurrent, VERR_INVALID_PARAMETER);
83 AssertReturn(cNew < _1M, VERR_OUT_OF_RANGE);
92 AssertReturn(pvOld == NULL, VERR_INVALID_PARAMETER);
93 AssertReturn(cNew != 0, VERR_INVALID_PARAMETER);
129 AssertReturn(pAllocation->pAllocator != NULL, VERR_WRONG_ORDER);
140 AssertReturn(pAllocation->pAllocator != NULL, VERR_WRONG_ORDER);
178 AssertReturn(pAllocator != NULL, VERR_WRONG_ORDER);
179 AssertReturn(c
[all...]
/vbox/src/VBox/Main/src-server/linux/
H A DUSBProxyServiceLinux.cpp224 AssertReturn(aDevice, VERR_GENERAL_FAILURE);
225 AssertReturn(!aDevice->isWriteLockOnCurrentThread(), VERR_GENERAL_FAILURE);
243 AssertReturn(aDevice, VERR_GENERAL_FAILURE);
244 AssertReturn(!aDevice->isWriteLockOnCurrentThread(), VERR_GENERAL_FAILURE);
263 AssertReturn(aDevice, false);
264 AssertReturn(!aDevice->isWriteLockOnCurrentThread(), false);
367 AssertReturn(!isWriteLockOnCurrentThread(), VERR_GENERAL_FAILURE);

Completed in 133 milliseconds

1234567891011>>