Changeset 14269 in vbox for trunk/src/VBox
- Timestamp:
- Nov 17, 2008 7:34:56 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp
r14250 r14269 384 384 goto out; 385 385 } 386 Assert (VALID_PTR(pPCHSGeometry));387 Assert (VALID_PTR(pLCHSGeometry));386 AssertPtr(PCHSGeometry); 387 AssertPtr(pLCHSGeometry); 388 388 389 389 pImage->pInterfaceError = VDInterfaceGet(pImage->pVDIfsDisk, VDINTERFACETYPE_ERROR); … … 756 756 static void vdiFreeImage(PVDIIMAGEDESC pImage, bool fDelete) 757 757 { 758 Assert (VALID_PTR(pImage));758 AssertPtr(pImage); 759 759 760 760 if (pImage->File != NIL_RTFILE) … … 1009 1009 int rc; 1010 1010 1011 Assert (VALID_PTR(pImage));1011 AssertPtr(pImage); 1012 1012 Assert(!(uOffset % 512)); 1013 1013 Assert(!(cbToRead % 512)); … … 1044 1044 } 1045 1045 1046 if ( RT_SUCCESS(rc) || rc == VERR_VDI_BLOCK_FREE)1046 if (pcbActuallyRead) 1047 1047 *pcbActuallyRead = cbToRead; 1048 1048 … … 1063 1063 int rc = VINF_SUCCESS; 1064 1064 1065 Assert (VALID_PTR(pImage));1065 AssertPtr(pImage); 1066 1066 Assert(!(uOffset % 512)); 1067 1067 Assert(!(cbToWrite % 512)); … … 1177 1177 unsigned uVersion; 1178 1178 1179 Assert (VALID_PTR(pImage));1179 AssertPtr(pImage); 1180 1180 1181 1181 if (pImage) … … 1195 1195 int rc = VINF_SUCCESS; 1196 1196 1197 Assert (VALID_PTR(pImage));1198 Assert (VALID_PTR(penmImageType));1197 AssertPtr(pImage); 1198 AssertPtr(penmImageType); 1199 1199 1200 1200 if (pImage) … … 1214 1214 uint64_t cbSize; 1215 1215 1216 Assert (VALID_PTR(pImage));1216 AssertPtr(pImage); 1217 1217 1218 1218 if (pImage) … … 1232 1232 uint64_t cb = 0; 1233 1233 1234 Assert (VALID_PTR(pImage));1234 AssertPtr(pImage); 1235 1235 1236 1236 if (pImage) … … 1257 1257 int rc; 1258 1258 1259 Assert (VALID_PTR(pImage));1259 AssertPtr(pImage); 1260 1260 1261 1261 if (pImage) … … 1284 1284 int rc; 1285 1285 1286 Assert (VALID_PTR(pImage));1286 AssertPtr(pImage); 1287 1287 1288 1288 if (pImage) … … 1313 1313 int rc; 1314 1314 1315 Assert (VALID_PTR(pImage));1315 AssertPtr(pImage); 1316 1316 1317 1317 if (pImage) … … 1350 1350 int rc; 1351 1351 1352 Assert (VALID_PTR(pImage));1352 AssertPtr(pImage); 1353 1353 1354 1354 if (pImage) … … 1388 1388 unsigned uImageFlags; 1389 1389 1390 Assert (VALID_PTR(pImage));1390 AssertPtr(pImage); 1391 1391 1392 1392 if (pImage) … … 1406 1406 unsigned uOpenFlags; 1407 1407 1408 Assert (VALID_PTR(pImage));1408 AssertPtr(pImage); 1409 1409 1410 1410 if (pImage) … … 1451 1451 int rc = VINF_SUCCESS; 1452 1452 1453 Assert (VALID_PTR(pImage));1453 AssertPtr(pImage); 1454 1454 1455 1455 if (pImage) … … 1479 1479 int rc; 1480 1480 1481 Assert (VALID_PTR(pImage));1481 AssertPtr(pImage); 1482 1482 1483 1483 if (pImage->uOpenFlags & VD_OPEN_FLAGS_READONLY) … … 1527 1527 int rc; 1528 1528 1529 Assert (VALID_PTR(pImage));1529 AssertPtr(pImage); 1530 1530 1531 1531 if (pImage) … … 1548 1548 int rc = VINF_SUCCESS; 1549 1549 1550 Assert (VALID_PTR(pImage));1550 AssertPtr(pImage); 1551 1551 1552 1552 if (pImage) … … 1582 1582 int rc; 1583 1583 1584 Assert (VALID_PTR(pImage));1584 AssertPtr(pImage); 1585 1585 1586 1586 if (pImage) … … 1603 1603 int rc = VINF_SUCCESS; 1604 1604 1605 Assert (VALID_PTR(pImage));1605 AssertPtr(pImage); 1606 1606 1607 1607 if (pImage) … … 1637 1637 int rc; 1638 1638 1639 Assert (VALID_PTR(pImage));1639 AssertPtr(pImage); 1640 1640 1641 1641 if (pImage) … … 1658 1658 int rc = VINF_SUCCESS; 1659 1659 1660 Assert (VALID_PTR(pImage));1660 AssertPtr(pImage); 1661 1661 1662 1662 if (pImage) … … 1692 1692 int rc; 1693 1693 1694 Assert (VALID_PTR(pImage));1694 AssertPtr(pImage); 1695 1695 1696 1696 if (pImage) … … 1713 1713 int rc = VINF_SUCCESS; 1714 1714 1715 Assert (VALID_PTR(pImage));1715 AssertPtr(pImage); 1716 1716 1717 1717 if (pImage)
Note:
See TracChangeset
for help on using the changeset viewer.