More Windows fixes. trunk
authorRyan C. Gordon <icculus@icculus.org>
Wed, 30 Apr 2008 01:52:22 -0400
branchtrunk
changeset 259 68ba103e17e4
parent 258 1db5d8b015fc
child 260 5b5fc8c5661b
More Windows fixes. I fail at cut-and-paste.
finderrors.c
--- 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