src/stdlib/SDL_getenv.c
changeset 1472 4aac8563c296
parent 1456 84de7511f79f
child 1662 782fd950bd46
child 1895 c121d94672cb
child 3975 e85e65aec22f
--- a/src/stdlib/SDL_getenv.c	Mon Mar 06 07:42:36 2006 +0000
+++ b/src/stdlib/SDL_getenv.c	Mon Mar 06 08:11:10 2006 +0000
@@ -69,7 +69,7 @@
 {
 	size_t bufferlen;
 
-	bufferlen = GetEnvironmentVariable(name, SDL_envmem, SDL_envmemlen);
+	bufferlen = GetEnvironmentVariable(name, SDL_envmem, (DWORD)SDL_envmemlen);
 	if ( bufferlen == 0 ) {
 		return NULL;
 	}
@@ -80,7 +80,7 @@
 		}
 		SDL_envmem = newmem;
 		SDL_envmemlen = bufferlen;
-		GetEnvironmentVariable(name, SDL_envmem, SDL_envmemlen);
+		GetEnvironmentVariable(name, SDL_envmem, (DWORD)SDL_envmemlen);
 	}
 	return SDL_envmem;
 }