- Timestamp:
- Mar 23, 2009 4:28:11 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp
r18141 r18149 2375 2375 pDescFile = pImage->pExtents[0].pFile; 2376 2376 } 2377 /* Bail out if there is no file to write to. */ 2378 if (pDescFile == NULL) 2379 return VERR_INVALID_PARAMETER; 2377 2380 for (unsigned i = 0; i < pImage->Descriptor.cLines; i++) 2378 2381 { … … 3848 3851 } 3849 3852 } 3850 /* Don't attempt to flush the image if there is no file - usually happens 3851 * when creating fails for whatever reason. */ 3852 if (pImage->pFile != NULL) 3853 (void)vmdkFlushImage(pImage); 3853 (void)vmdkFlushImage(pImage); 3854 3854 3855 3855 if (pImage->pExtents != NULL) … … 4639 4639 pImage->Descriptor.fDirty = true; 4640 4640 /* Flush the descriptor now, in case it is embedded. */ 4641 vmdkFlushImage(pImage);4641 (void)vmdkFlushImage(pImage); 4642 4642 4643 4643 /* Close and rename/move extents. */
Note:
See TracChangeset
for help on using the changeset viewer.