Changeset 49039 in vbox for trunk/src/VBox/Storage/Parallels.cpp
- Timestamp:
- Oct 10, 2013 6:27:32 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 89816
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/Parallels.cpp
r48743 r49039 205 205 { 206 206 /* Check if the file has hdd as extension. It is a fixed size raw image then. */ 207 char *psz Extension = RTPathExt(pImage->pszFilename);208 if (strcmp(psz Extension, ".hdd"))207 char *pszSuffix = RTPathSuffix(pImage->pszFilename); 208 if (strcmp(pszSuffix, ".hdd")) 209 209 { 210 210 rc = VERR_VD_PARALLELS_INVALID_HEADER; … … 391 391 */ 392 392 uint64_t cbFile; 393 char *psz Extension;393 char *pszSuffix; 394 394 395 395 rc = vdIfIoIntFileGetSize(pIfIo, pStorage, &cbFile); … … 400 400 } 401 401 402 psz Extension = RTPathExt(pszFilename);403 if (!psz Extension || strcmp(pszExtension, ".hdd"))402 pszSuffix = RTPathSuffix(pszFilename); 403 if (!pszSuffix || strcmp(pszSuffix, ".hdd")) 404 404 rc = VERR_VD_PARALLELS_INVALID_HEADER; 405 405 else
Note:
See TracChangeset
for help on using the changeset viewer.