Changeset 8229 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Apr 21, 2008 2:04:57 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp
r8155 r8229 2222 2222 pExtent->File = File; 2223 2223 pImage->File = NIL_RTFILE; 2224 pExtent->pszFullname = RTStrDup(pImage->pszFilename); 2225 if (!pExtent->pszFullname) 2226 { 2227 rc = VERR_NO_MEMORY; 2228 goto out; 2229 } 2224 2230 rc = vmdkReadMetaSparseExtent(pImage, pExtent); 2225 2231 if (VBOX_FAILURE(rc)) … … 2786 2792 char *pszBasedirectory = RTStrDup(pImage->pszFilename); 2787 2793 RTPathStripFilename(pszBasedirectory); 2788 char *pszF N;2789 rc = RTStrAPrintf(&pszF N, "%s%c%s", pszBasedirectory, RTPATH_SLASH,2790 pExtent->pszBasename);2794 char *pszFullname; 2795 rc = RTStrAPrintf(&pszFullname, "%s%c%s", pszBasedirectory, 2796 RTPATH_SLASH, pExtent->pszBasename); 2791 2797 RTStrFree(pszBasedirectory); 2792 2798 if (VBOX_FAILURE(rc)) 2793 2799 return rc; 2794 pExtent->pszFullname = pszF N;2800 pExtent->pszFullname = pszFullname; 2795 2801 2796 2802 /* Create file for extent. */
Note:
See TracChangeset
for help on using the changeset viewer.