Changeset 40298 in vbox for trunk/src/VBox/Runtime/common/dvm/dvmgpt.cpp
- Timestamp:
- Feb 29, 2012 2:19:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/dvm/dvmgpt.cpp
r40137 r40298 255 255 256 256 pThis = (PRTDVMFMTINTERNAL)RTMemAllocZ(sizeof(RTDVMFMTINTERNAL)); 257 if ( VALID_PTR(pThis))257 if (pThis) 258 258 { 259 259 pThis->pDisk = pDisk; … … 280 280 { 281 281 pThis->paGptEntries = (PGptEntry)RTMemAllocZ(pThis->HdrRev1.cPartitionEntries * pThis->HdrRev1.cbPartitionEntry); 282 if ( VALID_PTR(pThis->paGptEntries))282 if (pThis->paGptEntries) 283 283 { 284 284 rc = rtDvmDiskRead(pDisk, RTDVM_GPT_LBA2BYTE(pThis->HdrRev1.u64LbaPartitionEntries, pDisk), … … 370 370 PRTDVMVOLUMEFMTINTERNAL pVol = (PRTDVMVOLUMEFMTINTERNAL)RTMemAllocZ(sizeof(RTDVMVOLUMEFMTINTERNAL)); 371 371 372 if ( VALID_PTR(pVol))372 if (pVol) 373 373 { 374 374 pVol->pVolMgr = pThis;
Note:
See TracChangeset
for help on using the changeset viewer.