src/stdlib/SDL_getenv.c
changeset 1472 4aac8563c296
parent 1456 84de7511f79f
child 1662 782fd950bd46
child 1895 c121d94672cb
child 3975 e85e65aec22f
     1.1 --- a/src/stdlib/SDL_getenv.c	Mon Mar 06 07:42:36 2006 +0000
     1.2 +++ b/src/stdlib/SDL_getenv.c	Mon Mar 06 08:11:10 2006 +0000
     1.3 @@ -69,7 +69,7 @@
     1.4  {
     1.5  	size_t bufferlen;
     1.6  
     1.7 -	bufferlen = GetEnvironmentVariable(name, SDL_envmem, SDL_envmemlen);
     1.8 +	bufferlen = GetEnvironmentVariable(name, SDL_envmem, (DWORD)SDL_envmemlen);
     1.9  	if ( bufferlen == 0 ) {
    1.10  		return NULL;
    1.11  	}
    1.12 @@ -80,7 +80,7 @@
    1.13  		}
    1.14  		SDL_envmem = newmem;
    1.15  		SDL_envmemlen = bufferlen;
    1.16 -		GetEnvironmentVariable(name, SDL_envmem, SDL_envmemlen);
    1.17 +		GetEnvironmentVariable(name, SDL_envmem, (DWORD)SDL_envmemlen);
    1.18  	}
    1.19  	return SDL_envmem;
    1.20  }