[ioquake3] 22/136: Add missing RegCloseKey to Sys_SteamPath

Simon McVittie smcv at debian.org
Thu Jun 15 09:09:00 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian/master
in repository ioquake3.

commit f5143405f181752c679f740e9c06f2a31d8e9545
Author: Max Crofts <maxcrofts at users.noreply.github.com>
Date:   Fri Apr 7 15:18:28 2017 +1000

    Add missing RegCloseKey to Sys_SteamPath
---
 code/sys/sys_win32.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/code/sys/sys_win32.c b/code/sys/sys_win32.c
index da7241a..6bf0828 100644
--- a/code/sys/sys_win32.c
+++ b/code/sys/sys_win32.c
@@ -148,6 +148,8 @@ char *Sys_SteamPath( void )
 		pathLen = MAX_OSPATH;
 		if (RegQueryValueEx(steamRegKey, "InstallLocation", NULL, NULL, (LPBYTE)steamPath, &pathLen))
 			steamPath[0] = '\0';
+
+		RegCloseKey(steamRegKey);
 	}
 #endif
 
@@ -161,6 +163,8 @@ char *Sys_SteamPath( void )
 
 		if (steamPath[0])
 			finishPath = qtrue;
+
+		RegCloseKey(steamRegKey);
 	}
 #endif
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git



More information about the Pkg-games-commits mailing list