Changeset 14281 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Nov 18, 2008 9:50:33 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp
r13580 r14281 540 540 PVMDKFILE pVmdkFile = *ppVmdkFile; 541 541 542 Assert (VALID_PTR(pVmdkFile));542 AssertPtr(pVmdkFile); 543 543 544 544 pVmdkFile->fDelete |= fDelete; … … 698 698 char *pszDst = szEnc; 699 699 700 Assert (VALID_PTR(psz));700 AssertPtr(psz); 701 701 702 702 for (; *psz; psz = RTStrNextCp(psz)) … … 742 742 return VERR_BUFFER_OVERFLOW; 743 743 744 Assert (VALID_PTR(psz));744 AssertPtr(psz); 745 745 746 746 for (; *pszEncoded; pszEncoded = RTStrNextCp(pszEncoded)) … … 2970 2970 /* Basename strings needed for constructing the extent names. */ 2971 2971 char *pszBasenameSubstr = RTPathFilename(pImage->pszFilename); 2972 Assert (pszBasenameSubstr);2972 AssertPtr(pszBasenameSubstr); 2973 2973 size_t cbBasenameSubstr = strlen(pszBasenameSubstr) + 1; 2974 2974 … … 3367 3367 static void vmdkFreeImage(PVMDKIMAGE pImage, bool fDelete) 3368 3368 { 3369 Assert (pImage);3369 AssertPtr(pImage); 3370 3370 3371 3371 if (pImage->enmImageType) … … 3943 3943 static char * vmdkStrReplace(const char *pszWhere, const char *pszWhat, const char *pszByWhat) 3944 3944 { 3945 Assert (VALID_PTR(pszWhere));3946 Assert (VALID_PTR(pszWhat));3947 Assert (VALID_PTR(pszByWhat));3945 AssertPtr(pszWhere); 3946 AssertPtr(pszWhat); 3947 AssertPtr(pszByWhat); 3948 3948 const char *pszFoundStr = strstr(pszWhere, pszWhat); 3949 3949 if (!pszFoundStr) … … 4151 4151 } 4152 4152 else 4153 { 4153 { 4154 4154 /* Shouldn't be null for separate descriptor. 4155 4155 * There will be no access to the actual content. 4156 4156 */ 4157 pImage->pDescData = pszOldDescName; 4157 pImage->pDescData = pszOldDescName; 4158 4158 pImage->pFile = pFile; 4159 4159 } … … 4240 4240 int rc; 4241 4241 4242 Assert (pImage);4242 AssertPtr(pImage); 4243 4243 Assert(uOffset % 512 == 0); 4244 4244 Assert(cbToRead % 512 == 0); … … 4296 4296 break; 4297 4297 } 4298 *pcbActuallyRead = cbToRead; 4298 if (pcbActuallyRead) 4299 *pcbActuallyRead = cbToRead; 4299 4300 4300 4301 out: … … 4315 4316 int rc; 4316 4317 4317 Assert (pImage);4318 AssertPtr(pImage); 4318 4319 Assert(uOffset % 512 == 0); 4319 4320 Assert(cbToWrite % 512 == 0); … … 4421 4422 int rc; 4422 4423 4423 Assert (pImage);4424 AssertPtr(pImage); 4424 4425 4425 4426 rc = vmdkFlushImage(pImage); … … 4434 4435 PVMDKIMAGE pImage = (PVMDKIMAGE)pBackendData; 4435 4436 4436 Assert (pImage);4437 AssertPtr(pImage); 4437 4438 4438 4439 if (pImage) … … 4449 4450 int rc = VINF_SUCCESS; 4450 4451 4451 Assert (pImage);4452 Assert (penmImageType);4452 AssertPtr(pImage); 4453 AssertPtr(penmImageType); 4453 4454 4454 4455 if (pImage && pImage->cExtents != 0) … … 4467 4468 PVMDKIMAGE pImage = (PVMDKIMAGE)pBackendData; 4468 4469 4469 Assert (pImage);4470 AssertPtr(pImage); 4470 4471 4471 4472 if (pImage) … … 4482 4483 uint64_t cb = 0; 4483 4484 4484 Assert (pImage);4485 AssertPtr(pImage); 4485 4486 4486 4487 if (pImage) … … 4513 4514 int rc; 4514 4515 4515 Assert (pImage);4516 AssertPtr(pImage); 4516 4517 4517 4518 if (pImage) … … 4540 4541 int rc; 4541 4542 4542 Assert (pImage);4543 AssertPtr(pImage); 4543 4544 4544 4545 if (pImage) … … 4572 4573 int rc; 4573 4574 4574 Assert (pImage);4575 AssertPtr(pImage); 4575 4576 4576 4577 if (pImage) … … 4599 4600 int rc; 4600 4601 4601 Assert (pImage);4602 AssertPtr(pImage); 4602 4603 4603 4604 if (pImage) … … 4630 4631 unsigned uImageFlags; 4631 4632 4632 Assert (pImage);4633 AssertPtr(pImage); 4633 4634 4634 4635 if (pImage) … … 4648 4649 unsigned uOpenFlags; 4649 4650 4650 Assert (pImage);4651 AssertPtr(pImage); 4651 4652 4652 4653 if (pImage) … … 4691 4692 int rc; 4692 4693 4693 Assert (pImage);4694 AssertPtr(pImage); 4694 4695 4695 4696 if (pImage) … … 4725 4726 int rc; 4726 4727 4727 Assert (pImage);4728 AssertPtr(pImage); 4728 4729 4729 4730 if (pImage->uOpenFlags & VD_OPEN_FLAGS_READONLY) … … 4750 4751 int rc; 4751 4752 4752 Assert (pImage);4753 AssertPtr(pImage); 4753 4754 4754 4755 if (pImage) … … 4772 4773 4773 4774 LogFlowFunc(("%RTuuid\n", pUuid)); 4774 Assert (pImage);4775 AssertPtr(pImage); 4775 4776 4776 4777 if (pImage) … … 4802 4803 int rc; 4803 4804 4804 Assert (pImage);4805 AssertPtr(pImage); 4805 4806 4806 4807 if (pImage) … … 4823 4824 int rc; 4824 4825 4825 Assert (pImage);4826 AssertPtr(pImage); 4826 4827 4827 4828 if (pImage) … … 4853 4854 int rc; 4854 4855 4855 Assert (pImage);4856 AssertPtr(pImage); 4856 4857 4857 4858 if (pImage) … … 4874 4875 int rc; 4875 4876 4876 Assert (pImage);4877 AssertPtr(pImage); 4877 4878 4878 4879 if (pImage) … … 4904 4905 int rc; 4905 4906 4906 Assert (pImage);4907 AssertPtr(pImage); 4907 4908 4908 4909 if (pImage) … … 4925 4926 int rc; 4926 4927 4927 Assert (pImage);4928 AssertPtr(pImage); 4928 4929 4929 4930 if (pImage) … … 4953 4954 PVMDKIMAGE pImage = (PVMDKIMAGE)pBackendData; 4954 4955 4955 Assert (pImage);4956 AssertPtr(pImage); 4956 4957 if (pImage) 4957 4958 { … … 5037 5038 unsigned uOffsetInCurrentSegment = 0; 5038 5039 5039 Assert (pImage);5040 AssertPtr(pImage); 5040 5041 Assert(uOffset % 512 == 0); 5041 5042 Assert(cbRead % 512 == 0); … … 5173 5174 unsigned uOffsetInCurrentSegment = 0; 5174 5175 5175 Assert (pImage);5176 AssertPtr(pImage); 5176 5177 Assert(uOffset % 512 == 0); 5177 5178 Assert(cbWrite % 512 == 0);
Note:
See TracChangeset
for help on using the changeset viewer.