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 96753c7288eb4ca4
parent 9674 b0f63fe6e012
child 9676 edd750fa709c
Windows SDL_GetBasePath: Fixed wrong variable when growing the buffer size.
src/filesystem/windows/SDL_sysfilesystem.c
     1.1 --- a/src/filesystem/windows/SDL_sysfilesystem.c	Thu May 28 12:31:25 2015 -0700
     1.2 +++ b/src/filesystem/windows/SDL_sysfilesystem.c	Thu May 28 15:29:43 2015 -0400
     1.3 @@ -72,7 +72,7 @@
     1.4  
     1.5          /* buffer too small? Try again. */
     1.6          SDL_free(path);
     1.7 -        len *= 2;
     1.8 +        buflen *= 2;
     1.9      }
    1.10  
    1.11      FreeLibrary(psapi);