--- Unreal3.2/src/modules.c	Mon Apr 13 07:03:58 2009
+++ modules.c	Sun Oct 24 13:36:08 2010
@@ -320,12 +320,15 @@
 	long modsys_ver = 0;
 	Debug((DEBUG_DEBUG, "Attempting to load module from %s",
 	       path_));
 	path = path_;
 
-	
+#ifdef _WIN32
+    tmppath = unreal_mktemp(getenv("AppData"), unreal_getfilename(path));
+#else	
 	tmppath = unreal_mktemp("tmp", unreal_getfilename(path));
+#endif
 	if (!tmppath)
 		return "Unable to create temporary file!";
 #ifndef _WIN32
 	if(!strchr(path, '/'))
 #else
