[iortcw] 52/95: All: Add missing RegCloseKey to Sys_SteamPath
Simon McVittie
smcv at debian.org
Fri Sep 8 10:42:10 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to tag 1.51
in repository iortcw.
commit cc5a474f741d9a655b1e252d080a9b86468ef670
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date: Tue Apr 11 18:21:18 2017 -0400
All: Add missing RegCloseKey to Sys_SteamPath
---
MP/code/sys/sys_win32.c | 4 ++++
SP/code/sys/sys_win32.c | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/MP/code/sys/sys_win32.c b/MP/code/sys/sys_win32.c
index 35a4367..bc687c4 100644
--- a/MP/code/sys/sys_win32.c
+++ b/MP/code/sys/sys_win32.c
@@ -152,6 +152,8 @@ char *Sys_SteamPath( void )
pathLen = MAX_OSPATH;
if (RegQueryValueEx(steamRegKey, "InstallLocation", NULL, NULL, (LPBYTE)steamPath, &pathLen))
steamPath[0] = '\0';
+
+ RegCloseKey(steamRegKey);
}
#endif
@@ -165,6 +167,8 @@ char *Sys_SteamPath( void )
if (steamPath[0])
finishPath = qtrue;
+
+ RegCloseKey(steamRegKey);
}
#endif
diff --git a/SP/code/sys/sys_win32.c b/SP/code/sys/sys_win32.c
index a564970..fae6646 100644
--- a/SP/code/sys/sys_win32.c
+++ b/SP/code/sys/sys_win32.c
@@ -152,6 +152,8 @@ char *Sys_SteamPath( void )
pathLen = MAX_OSPATH;
if (RegQueryValueEx(steamRegKey, "InstallLocation", NULL, NULL, (LPBYTE)steamPath, &pathLen))
steamPath[0] = '\0';
+
+ RegCloseKey(steamRegKey);
}
#endif
@@ -165,6 +167,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/iortcw.git
More information about the Pkg-games-commits
mailing list