src/stdlib/SDL_getenv.c
changeset 1456 84de7511f79f
parent 1433 bb6839704ed6
child 1472 4aac8563c296
     1.1 --- a/src/stdlib/SDL_getenv.c	Mon Feb 27 22:14:40 2006 +0000
     1.2 +++ b/src/stdlib/SDL_getenv.c	Wed Mar 01 09:43:47 2006 +0000
     1.3 @@ -33,12 +33,12 @@
     1.4  /* Note this isn't thread-safe! */
     1.5  
     1.6  static char *SDL_envmem = NULL;	/* Ugh, memory leak */
     1.7 -static DWORD SDL_envmemlen = 0;
     1.8 +static size_t SDL_envmemlen = 0;
     1.9  
    1.10  /* Put a variable of the form "name=value" into the environment */
    1.11  int SDL_putenv(const char *variable)
    1.12  {
    1.13 -	DWORD bufferlen;
    1.14 +	size_t bufferlen;
    1.15  	char *value;
    1.16  	const char *sep;
    1.17  
    1.18 @@ -67,7 +67,7 @@
    1.19  /* Retrieve a variable named "name" from the environment */
    1.20  char *SDL_getenv(const char *name)
    1.21  {
    1.22 -	DWORD bufferlen;
    1.23 +	size_t bufferlen;
    1.24  
    1.25  	bufferlen = GetEnvironmentVariable(name, SDL_envmem, SDL_envmemlen);
    1.26  	if ( bufferlen == 0 ) {