Changeset 54117 in vbox
- Timestamp:
- Feb 9, 2015 5:08:28 PM (10 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 5 edited
-
Devices/Audio/coreaudio.c (modified) (1 diff)
-
Storage/VD.cpp (modified) (1 diff)
-
Storage/VDI.cpp (modified) (2 diffs)
-
Storage/VHD.cpp (modified) (3 diffs)
-
Storage/VMDK.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/coreaudio.c
r44529 r54117 300 300 return err; 301 301 pRange = RTMemAllocZ(cSize); 302 if ( RT_VALID_PTR(pRange))302 if (pRange) 303 303 { 304 304 err = AudioDeviceGetProperty(device, -
trunk/src/VBox/Storage/VD.cpp
r53624 r54117 3037 3037 */ 3038 3038 PRTSGBUF pTmp = (PRTSGBUF)RTMemAlloc(cbPreRead + cbThisWrite + cbPostRead + sizeof(RTSGSEG) + sizeof(RTSGBUF)); 3039 AssertBreakStmt( VALID_PTR(pTmp), rc = VERR_NO_MEMORY);3039 AssertBreakStmt(pTmp, rc = VERR_NO_MEMORY); 3040 3040 PRTSGSEG pSeg = (PRTSGSEG)(pTmp + 1); 3041 3041 -
trunk/src/VBox/Storage/VDI.cpp
r50988 r54117 2427 2427 { 2428 2428 pvBuf = RTMemTmpAlloc(cbBlock); 2429 AssertBreakStmt( VALID_PTR(pvBuf), rc = VERR_NO_MEMORY);2429 AssertBreakStmt(pvBuf, rc = VERR_NO_MEMORY); 2430 2430 } 2431 2431 pvTmp = RTMemTmpAlloc(cbBlock); 2432 AssertBreakStmt( VALID_PTR(pvTmp), rc = VERR_NO_MEMORY);2432 AssertBreakStmt(pvTmp, rc = VERR_NO_MEMORY); 2433 2433 2434 2434 uint64_t cbFile; … … 2445 2445 /* Allocate block array for back resolving. */ 2446 2446 paBlocks2 = (unsigned *)RTMemAlloc(sizeof(unsigned *) * cBlocksAllocated); 2447 AssertBreakStmt( VALID_PTR(paBlocks2), rc = VERR_NO_MEMORY);2447 AssertBreakStmt(paBlocks2, rc = VERR_NO_MEMORY); 2448 2448 /* Fill out back resolving, check/fix allocation errors before 2449 2449 * compacting the image, just to be on the safe side. Update the -
trunk/src/VBox/Storage/VHD.cpp
r52695 r54117 2462 2462 { 2463 2463 pvParent = RTMemTmpAlloc(pImage->cbDataBlock); 2464 AssertBreakStmt( VALID_PTR(pvParent), rc = VERR_NO_MEMORY);2464 AssertBreakStmt(pvParent, rc = VERR_NO_MEMORY); 2465 2465 } 2466 2466 pvBuf = RTMemTmpAlloc(pImage->cbDataBlock); 2467 AssertBreakStmt( VALID_PTR(pvBuf), rc = VERR_NO_MEMORY);2467 AssertBreakStmt(pvBuf, rc = VERR_NO_MEMORY); 2468 2468 2469 2469 unsigned cBlocksAllocated = 0; … … 2490 2490 2491 2491 paBlocks = (uint32_t *)RTMemTmpAllocZ(cBlocksAllocated * sizeof(uint32_t)); 2492 AssertBreakStmt( VALID_PTR(paBlocks), rc = VERR_NO_MEMORY);2492 AssertBreakStmt(paBlocks, rc = VERR_NO_MEMORY); 2493 2493 2494 2494 /* Invalidate the back resolving array. */ … … 2572 2572 RTMemTmpFree(pvBuf); 2573 2573 pvBuf = RTMemTmpAllocZ(cbBlock); 2574 AssertBreakStmt( VALID_PTR(pvBuf), rc = VERR_NO_MEMORY);2574 AssertBreakStmt(pvBuf, rc = VERR_NO_MEMORY); 2575 2575 2576 2576 for (unsigned i = 0; i < cBlocksAllocated; i++) -
trunk/src/VBox/Storage/VMDK.cpp
r50988 r54117 564 564 /* If we get here, there's no matching entry in the cache. */ 565 565 pVmdkFile = (PVMDKFILE)RTMemAllocZ(sizeof(VMDKFILE)); 566 if (! VALID_PTR(pVmdkFile))566 if (!pVmdkFile) 567 567 { 568 568 *ppVmdkFile = NULL; … … 571 571 572 572 pVmdkFile->pszFilename = RTStrDup(pszFilename); 573 if (! VALID_PTR(pVmdkFile->pszFilename))573 if (!pVmdkFile->pszFilename) 574 574 { 575 575 RTMemFree(pVmdkFile);
Note:
See TracChangeset
for help on using the changeset viewer.

