Changeset 68787 in vbox
- Timestamp:
- Sep 19, 2017 8:53:40 AM (7 years ago)
- Location:
- trunk/src/VBox/Storage
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VDI.cpp
r66505 r68787 244 244 245 245 if (fDelete && pImage->pszFilename) 246 vdIfIoIntFileDelete(pImage->pIfIo, pImage->pszFilename); 246 { 247 int rc2 = vdIfIoIntFileDelete(pImage->pIfIo, pImage->pszFilename); 248 if (RT_SUCCESS(rc)) 249 rc = rc2; 250 } 247 251 } 248 252 -
trunk/src/VBox/Storage/VHD.cpp
r66486 r68787 588 588 589 589 if (fDelete && pImage->pszFilename) 590 vdIfIoIntFileDelete(pImage->pIfIo, pImage->pszFilename); 590 { 591 int rc2 = vdIfIoIntFileDelete(pImage->pIfIo, pImage->pszFilename); 592 if (RT_SUCCESS(rc)) 593 rc = rc2; 594 } 591 595 } 592 596 -
trunk/src/VBox/Storage/VMDK.cpp
r67744 r68787 637 637 638 638 rc = vdIfIoIntFileClose(pImage->pIfIo, pVmdkFile->pStorage); 639 if (RT_SUCCESS(rc) && pVmdkFile->fDelete) 640 rc = vdIfIoIntFileDelete(pImage->pIfIo, pVmdkFile->pszFilename); 639 if (pVmdkFile->fDelete) 640 { 641 int rc2 = vdIfIoIntFileDelete(pImage->pIfIo, pVmdkFile->pszFilename); 642 if (RT_SUCCESS(rc)) 643 rc = rc2; 644 } 641 645 RTStrFree((char *)(void *)pVmdkFile->pszFilename); 642 646 RTMemFree(pVmdkFile); … … 3261 3265 else 3262 3266 { 3263 vdIfError(pImage->pIfError, rc, RT_SRC_POS, N_("VMDK: error reading the magic number in '%s'"), pImage->pszFilename); 3267 vdIfError(pImage->pIfError, rc, RT_SRC_POS, N_("VMDK: error reading the magic number in '%s'"), pImage->pszFilename); 3264 3268 rc = VERR_VD_VMDK_INVALID_HEADER; 3265 3269 }
Note:
See TracChangeset
for help on using the changeset viewer.

