Fix shfolder not getting freed

Gaming / Game Engines / Unvanquished - cmf028 [hotmail.com] - 3 June 2013 07:22 UTC



###

diff --git a/src/engine/sys/sys_win32.c b/src/engine/sys/sys_win32.c
index a299e63..3ffed74 100644
--- a/src/engine/sys/sys_win32.c
+++ b/src/engine/sys/sys_win32.c
@@ -134,9 +134,9 @@ char *Sys_DefaultHomePath( void )

Q_strncpyz( homePath, szPath, sizeof( homePath ) );
Q_strcat( homePath, sizeof( homePath ), "\\Daemon" );
- FreeLibrary( shfolder );
}

+ FreeLibrary( shfolder );
return homePath;
}

43b47d6 Fix shfolder not getting freed
src/engine/sys/sys_win32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Upstream: github.com


  • Share