diff --git a/Makefile b/Makefile index 13d0933e..e9f969f6 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 36a35c52..4bbd509d 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 ) {