Add missing RegCloseKey to Sys_SteamPath
This commit is contained in:
1 parent
d7a99d5d44
commit
f5143405f1
1 file changed
+4
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user