Explorar o código

Minor logic fix.

Ryan C. Gordon %!s(int64=24) %!d(string=hai) anos
pai
achega
4bb0fbe4e2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      platform/win32.c

+ 1 - 1
platform/win32.c

@@ -273,7 +273,7 @@ LinkedStringList *__PHYSFS_platformEnumerateFiles(const char *dirname,
     dir = FindFirstFile(dirname, &ent);
     BAIL_IF_MACRO(dir == INVALID_HANDLE_VALUE, win32strerror(), NULL);
 
-    for (; FindNextFile(dir, &ent) != 0; )
+    while (FindNextFile(dir, &ent) != 0)
     {
         if (strcmp(ent.cFileName, ".") == 0)
             continue;