finderrors.c
branchtrunk
changeset 259 68ba103e17e4
parent 258 1db5d8b015fc
child 260 5b5fc8c5661b
--- a/finderrors.c	Wed Apr 30 01:51:08 2008 -0400
+++ b/finderrors.c	Wed Apr 30 01:52:22 2008 -0400
@@ -100,14 +100,14 @@
 #ifdef _MSC_VER
     WIN32_FIND_DATA dent;
     HANDLE dirp = INVALID_HANDLE_VALUE;
-    FindFirstFileA(wSearchPath, &entw);
+    FindFirstFileA(dname, &dent);
     if (dirp != INVALID_HANDLE_VALUE)
     {
         do
         {
             if (!do_file(profile, dname, dent.cFileName, &total))
                 break;
-        } while (pFindNextFileA(dirp, &dent) != 0);
+        } while (FindNextFileA(dirp, &dent) != 0);
         CloseHandle(dirp);
     } // if
 #else