Windows SDL_GetBasePath: Fixed wrong variable when growing the buffer size.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 28 May 2015 15:29:43 -0400
changeset 9675 3c7288eb4ca4
parent 9674 b0f63fe6e012
child 9676 edd750fa709c
Windows SDL_GetBasePath: Fixed wrong variable when growing the buffer size.
src/filesystem/windows/SDL_sysfilesystem.c
--- a/src/filesystem/windows/SDL_sysfilesystem.c	Thu May 28 12:31:25 2015 -0700
+++ b/src/filesystem/windows/SDL_sysfilesystem.c	Thu May 28 15:29:43 2015 -0400
@@ -72,7 +72,7 @@
 
         /* buffer too small? Try again. */
         SDL_free(path);
-        len *= 2;
+        buflen *= 2;
     }
 
     FreeLibrary(psapi);