--- code/sys/sys_unix.c.orig	2009-09-04 18:30:31.000000000 +0200
+++ code/sys/sys_unix.c	2009-09-05 08:29:09.000000000 +0200
@@ -53,11 +53,15 @@
 		if( ( p = getenv( "HOME" ) ) != NULL )
 		{
 			Q_strncpyz( homePath, p, sizeof( homePath ) );
+#ifdef HOMEPATH
+			Q_strcat( homePath, sizeof( homePath ), HOMEPATH );
+#else
 #ifdef MACOS_X
 			Q_strcat( homePath, sizeof( homePath ), "/Library/Application Support/Quake3" );
 #else
 			Q_strcat( homePath, sizeof( homePath ), "/.q3a" );
 #endif
+#endif
 			if( mkdir( homePath, 0777 ) )
 			{
 				if( errno != EEXIST )
