Changeset 64650 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Nov 11, 2016 2:55:07 PM (8 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxVideo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp
r64337 r64650 44 44 HGSMIBUFFERHEADER *pHdr = HGSMIBufferHeaderFromData(pvMem); 45 45 HGSMIOFFSET offMem = HGSMIPointerToOffset(&pCtx->areaCtx, pHdr); 46 Assert(offMem != HGSMIOFFSET_VOID);46 VBVOAssert(offMem != HGSMIOFFSET_VOID); 47 47 if(offMem != HGSMIOFFSET_VOID) 48 48 { … … 57 57 { 58 58 int rc = HGSMIBufferProcess(&pCtx->areaCtx, &pCtx->channels, offBuffer); 59 Assert(!RT_FAILURE(rc));59 VBVOAssert(!RT_FAILURE(rc)); 60 60 if(RT_FAILURE(rc)) 61 61 { … … 78 78 { 79 79 HGSMIOFFSET offset = hgsmiGetHostBuffer(pCtx); 80 AssertReturnVoid(offset != HGSMIOFFSET_VOID);80 VBVOAssertReturnVoid(offset != HGSMIOFFSET_VOID); 81 81 hgsmiHostCmdProcess(pCtx, offset); 82 82 } … … 162 162 HGSMIOFFSET offBuffer = HGSMIHeapBufferOffset (HGSMIGUESTCMDHEAP_GET(&pCtx->heapCtx), pvBuffer); 163 163 164 Assert(offBuffer != HGSMIOFFSET_VOID);164 VBVOAssert(offBuffer != HGSMIOFFSET_VOID); 165 165 if (offBuffer != HGSMIOFFSET_VOID) 166 166 { … … 242 242 if (RT_SUCCESS(rc)) 243 243 { 244 AssertRC(pCaps->rc);244 VBVOAssertRC(pCaps->rc); 245 245 rc = pCaps->rc; 246 246 } … … 318 318 uint32_t *poffHostFlags) 319 319 { 320 AssertPtrNullReturnVoid(poffVRAMBaseMapping);321 AssertPtrNullReturnVoid(pcbMapping);322 AssertPtrNullReturnVoid(poffGuestHeapMemory);323 AssertPtrNullReturnVoid(pcbGuestHeapMemory);324 AssertPtrNullReturnVoid(poffHostFlags);320 VBVOAssertPtrNullReturnVoid(poffVRAMBaseMapping); 321 VBVOAssertPtrNullReturnVoid(pcbMapping); 322 VBVOAssertPtrNullReturnVoid(poffGuestHeapMemory); 323 VBVOAssertPtrNullReturnVoid(pcbGuestHeapMemory); 324 VBVOAssertPtrNullReturnVoid(poffHostFlags); 325 325 if (poffVRAMBaseMapping) 326 326 *poffVRAMBaseMapping = cbVRAM - VBVA_ADAPTER_INFORMATION_SIZE; … … 386 386 uint32_t offVRAMHostArea = offVRAMBaseMapping, cbHostArea = 0; 387 387 388 AssertPtrReturnVoid(poffVRAMHostArea);389 AssertPtrReturnVoid(pcbHostArea);388 VBVOAssertPtrReturnVoid(poffVRAMHostArea); 389 VBVOAssertPtrReturnVoid(pcbHostArea); 390 390 VBoxQueryConfHGSMI(pCtx, VBOX_VBVA_CONF32_HOST_HEAP_SIZE, &cbHostArea); 391 391 if (cbHostArea != 0) … … 464 464 * host heap is ready */ 465 465 int rc = vboxHGSMIReportFlagsLocation(pCtx, offVRAMFlagsLocation); 466 AssertRC(rc);466 VBVOAssertRC(rc); 467 467 if (RT_SUCCESS(rc) && fCaps) 468 468 { 469 469 /* Inform about caps */ 470 470 rc = vboxHGSMISendCapsInfo(pCtx, fCaps); 471 AssertRC(rc);471 VBVOAssertRC(rc); 472 472 } 473 473 if (RT_SUCCESS (rc)) … … 475 475 /* Report the host heap location. */ 476 476 rc = vboxHGSMIReportHostArea(pCtx, offVRAMHostArea, cbHostArea); 477 AssertRC(rc);477 VBVOAssertRC(rc); 478 478 } 479 479 // Log(("VBoxVideo::vboxSetupAdapterInfo finished rc = %d\n", rc)); -
trunk/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp
r64425 r64650 23 23 #ifndef VBOX_GUESTR3XF86MOD 24 24 # include <iprt/string.h> 25 #endif26 27 #ifndef LINUX_VERSION_CODE28 # define VBVOAssertPtr AssertPtr29 #else30 # define VBVOAssertPtr(a) do {} while(0)31 25 #endif 32 26 -
trunk/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp
r64425 r64650 21 21 #include <VBox/err.h> 22 22 // #include <VBox/log.h> 23 #ifndef LINUX_VERSION_CODE24 # include <iprt/assert.h>25 # define VBVOAssert Assert26 #else27 # define VBVOAssert(a) do {} while(0)28 #endif29 23 #include <iprt/string.h> 30 24
Note:
See TracChangeset
for help on using the changeset viewer.