src/stdlib/SDL_getenv.c
changeset 1456 84de7511f79f
parent 1433 bb6839704ed6
child 1472 4aac8563c296
--- a/src/stdlib/SDL_getenv.c	Mon Feb 27 22:14:40 2006 +0000
+++ b/src/stdlib/SDL_getenv.c	Wed Mar 01 09:43:47 2006 +0000
@@ -33,12 +33,12 @@
 /* Note this isn't thread-safe! */
 
 static char *SDL_envmem = NULL;	/* Ugh, memory leak */
-static DWORD SDL_envmemlen = 0;
+static size_t SDL_envmemlen = 0;
 
 /* Put a variable of the form "name=value" into the environment */
 int SDL_putenv(const char *variable)
 {
-	DWORD bufferlen;
+	size_t bufferlen;
 	char *value;
 	const char *sep;
 
@@ -67,7 +67,7 @@
 /* Retrieve a variable named "name" from the environment */
 char *SDL_getenv(const char *name)
 {
-	DWORD bufferlen;
+	size_t bufferlen;
 
 	bufferlen = GetEnvironmentVariable(name, SDL_envmem, SDL_envmemlen);
 	if ( bufferlen == 0 ) {