VirtualBox

Changeset 728 in kBuild for trunk/src/gmake


Ignore:
Timestamp:
Dec 17, 2006 1:44:37 AM (18 years ago)
Author:
bird
Message:

don't stop fixing the path case if one component happens to be a short name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/w32/pathstuff.c

    r691 r728  
    201201        char chSaved1;
    202202        char *pszEnd;
     203        int iLongNameDiff;
    203204
    204205
     
    225226        }
    226227        pszEnd[0] = '\0';
    227         while (stricmp(FindFileData.cFileName, psz))
     228        while (   (iLongNameDiff = stricmp(FindFileData.cFileName, psz))
     229               && stricmp(FindFileData.cAlternateFileName, psz))
    228230        {
    229231            if (!FindNextFile(hDir, &FindFileData))
     
    235237            }
    236238        }
    237         strcpy(psz, FindFileData.cFileName);
     239        strcpy(psz, !iLongNameDiff ? FindFileData.cFileName : FindFileData.cAlternateFileName);
    238240        pszEnd[0] = chSaved0;
    239241        FindClose(hDir);
Note: See TracChangeset for help on using the changeset viewer.

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