VirtualBox

Ignore:
Timestamp:
Oct 10, 2013 6:27:32 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89816
Message:

IPRT: Filename extension versus suffix cleanup, long overdue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/Parallels.cpp

    r48743 r49039  
    205205    {
    206206        /* Check if the file has hdd as extension. It is a fixed size raw image then. */
    207         char *pszExtension = RTPathExt(pImage->pszFilename);
    208         if (strcmp(pszExtension, ".hdd"))
     207        char *pszSuffix = RTPathSuffix(pImage->pszFilename);
     208        if (strcmp(pszSuffix, ".hdd"))
    209209        {
    210210            rc = VERR_VD_PARALLELS_INVALID_HEADER;
     
    391391             */
    392392            uint64_t cbFile;
    393             char *pszExtension;
     393            char *pszSuffix;
    394394
    395395            rc = vdIfIoIntFileGetSize(pIfIo, pStorage, &cbFile);
     
    400400            }
    401401
    402             pszExtension = RTPathExt(pszFilename);
    403             if (!pszExtension || strcmp(pszExtension, ".hdd"))
     402            pszSuffix = RTPathSuffix(pszFilename);
     403            if (!pszSuffix || strcmp(pszSuffix, ".hdd"))
    404404                rc = VERR_VD_PARALLELS_INVALID_HEADER;
    405405            else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette