aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-08-01 17:36:47 +0000
committertjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-08-01 17:36:47 +0000
commite6a0afad175d5c1ec113ed652e39b30ba15180d2 (patch)
tree6cd57400ab2016ed625ff3622b40783beb07d624
parent598633c369f8478b50e44e5ee4af59db578d1d67 (diff)
downloadioquake3-aero-e6a0afad175d5c1ec113ed652e39b30ba15180d2.tar.gz
ioquake3-aero-e6a0afad175d5c1ec113ed652e39b30ba15180d2.zip
bug 2813
* fixed bug with new win32 home path detection * added SHFolder.lib linking to the mingw build for win98/win95 compat git-svn-id: svn://svn.icculus.org/quake3/trunk@829 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r--Makefile2
-rw-r--r--code/win32/win_shared.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 13d0933..e9f969f 100644
--- a/Makefile
+++ b/Makefile
@@ -385,7 +385,7 @@ ifeq ($(PLATFORM),mingw32)
BINEXT=.exe
- LDFLAGS= -mwindows -lwsock32 -lgdi32 -lwinmm -lole32
+ LDFLAGS= -mwindows -lshfolder -lwsock32 -lgdi32 -lwinmm -lole32
CLIENT_LDFLAGS=
ifeq ($(USE_CODEC_VORBIS),1)
diff --git a/code/win32/win_shared.c b/code/win32/win_shared.c
index 36a35c5..4bbd509 100644
--- a/code/win32/win_shared.c
+++ b/code/win32/win_shared.c
@@ -296,7 +296,7 @@ char *Sys_DefaultHomePath(void) {
}
Q_strncpyz( path, szPath, sizeof(path) );
Q_strcat( path, sizeof(path), "\\Quake3" );
- if( CreateDirectory( path, NULL ) )
+ if( !CreateDirectory( path, NULL ) )
{
if( GetLastError() != ERROR_ALREADY_EXISTS )
{