finderrors.c
branchtrunk
changeset 259 68ba103e17e4
parent 258 1db5d8b015fc
child 260 5b5fc8c5661b
equal deleted inserted replaced
258:1db5d8b015fc 259:68ba103e17e4
    98     int total = 0;
    98     int total = 0;
    99 
    99 
   100 #ifdef _MSC_VER
   100 #ifdef _MSC_VER
   101     WIN32_FIND_DATA dent;
   101     WIN32_FIND_DATA dent;
   102     HANDLE dirp = INVALID_HANDLE_VALUE;
   102     HANDLE dirp = INVALID_HANDLE_VALUE;
   103     FindFirstFileA(wSearchPath, &entw);
   103     FindFirstFileA(dname, &dent);
   104     if (dirp != INVALID_HANDLE_VALUE)
   104     if (dirp != INVALID_HANDLE_VALUE)
   105     {
   105     {
   106         do
   106         do
   107         {
   107         {
   108             if (!do_file(profile, dname, dent.cFileName, &total))
   108             if (!do_file(profile, dname, dent.cFileName, &total))
   109                 break;
   109                 break;
   110         } while (pFindNextFileA(dirp, &dent) != 0);
   110         } while (FindNextFileA(dirp, &dent) != 0);
   111         CloseHandle(dirp);
   111         CloseHandle(dirp);
   112     } // if
   112     } // if
   113 #else
   113 #else
   114     struct dirent *dent = NULL;
   114     struct dirent *dent = NULL;
   115     DIR *dirp = opendir(dname);
   115     DIR *dirp = opendir(dname);