Changeset 728 in kBuild for trunk/src/gmake
- Timestamp:
- Dec 17, 2006 1:44:37 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmake/w32/pathstuff.c
r691 r728 201 201 char chSaved1; 202 202 char *pszEnd; 203 int iLongNameDiff; 203 204 204 205 … … 225 226 } 226 227 pszEnd[0] = '\0'; 227 while (stricmp(FindFileData.cFileName, psz)) 228 while ( (iLongNameDiff = stricmp(FindFileData.cFileName, psz)) 229 && stricmp(FindFileData.cAlternateFileName, psz)) 228 230 { 229 231 if (!FindNextFile(hDir, &FindFileData)) … … 235 237 } 236 238 } 237 strcpy(psz, FindFileData.cFileName);239 strcpy(psz, !iLongNameDiff ? FindFileData.cFileName : FindFileData.cAlternateFileName); 238 240 pszEnd[0] = chSaved0; 239 241 FindClose(hDir);
Note:
See TracChangeset
for help on using the changeset viewer.