Changeset 15788 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Jan 5, 2009 8:41:39 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r15765 r15788 498 498 Log(("drvNATQueueConsumer(pItem:%p, pu8Buf:%p, cb:%d)\n", pItem, pItem->pu8Buf, pItem->cb)); 499 499 Log2(("drvNATQueueConsumer: pu8Buf:\n%.Rhxd\n", pItem->pu8Buf)); 500 int rc = pThis->pPort->pfnWaitReceiveAvail(pThis->pPort, 0); 501 if (RT_FAILURE(rc)) { 502 return RT_FAILURE(rc); 503 } 500 int rc = pThis->pPort->pfnWaitReceiveAvail(pThis->pPort, 0); 501 if (RT_FAILURE(rc)) 502 return false; 504 503 rc = pThis->pPort->pfnReceive(pThis->pPort, pItem->pu8Buf, pItem->cb); 505 504 AssertRC(rc); … … 790 789 #else 791 790 rc = RTReqCreateQueue(&pThis->pReqQueue); 792 if (RT_FAILURE(rc)) { 791 if (RT_FAILURE(rc)) 792 { 793 793 LogRel(("Can't create request queue\n")); 794 794 return rc; … … 796 796 797 797 rc = pDrvIns->pDrvHlp->pfnPDMQueueCreate(pDrvIns, sizeof(DRVNATQUEUITEM), 50, 0, drvNATQueueConsumer, &pThis->pSendQueue); 798 if (RT_FAILURE(rc)){ 798 if (RT_FAILURE(rc)) 799 { 799 800 LogRel(("Can't create send queue\n")); 800 801 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.