Add missing RegCloseKey to Sys_SteamPath

This commit is contained in:
Max Crofts committed 2017-04-07 15:18:28 +10:00
1 parent d7a99d5d44
commit f5143405f1
1 file changed
+4
+4
View File
@@ -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