Browse Source

Windows SDL_GetBasePath: Fixed wrong variable when growing the buffer size.

Ryan C. Gordon 10 years ago
parent
commit
566316e052
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/filesystem/windows/SDL_sysfilesystem.c

+ 1 - 1
src/filesystem/windows/SDL_sysfilesystem.c

@@ -72,7 +72,7 @@ SDL_GetBasePath(void)
 
 
         /* buffer too small? Try again. */
         /* buffer too small? Try again. */
         SDL_free(path);
         SDL_free(path);
-        len *= 2;
+        buflen *= 2;
     }
     }
 
 
     FreeLibrary(psapi);
     FreeLibrary(psapi);