From: Robert K. <may...@us...> - 2001-06-16 03:17:54
|
Update of /cvsroot/bitcollider/bitcollider/lib In directory usw-pr-cvs1:/tmp/cvs-serv28086 Modified Files: dirsearch.c Log Message: Fixed an issue where GetFileAttributes was used wrongly Index: dirsearch.c =================================================================== RCS file: /cvsroot/bitcollider/bitcollider/lib/dirsearch.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** dirsearch.c 2001/04/05 23:38:13 1.2 --- dirsearch.c 2001/06/16 03:17:51 1.3 *************** *** 146,150 **** /* if a path was specified, then add a \*.* */ ! if (GetFileAttributes(newPath) == FILE_ATTRIBUTE_DIRECTORY) strcat(newPath, "\\*.*"); --- 146,150 ---- /* if a path was specified, then add a \*.* */ ! if ((GetFileAttributes(newPath) & FILE_ATTRIBUTE_DIRECTORY) != 0) strcat(newPath, "\\*.*"); *************** *** 154,158 **** /* If its not a directory, then remove everything after the last slash */ ! if (GetFileAttributes(savedPath) != FILE_ATTRIBUTE_DIRECTORY) { char *ptr; --- 154,158 ---- /* If its not a directory, then remove everything after the last slash */ ! if ((GetFileAttributes(savedPath) & FILE_ATTRIBUTE_DIRECTORY) != 0) { char *ptr; |