Add missing RegCloseKey to Sys_SteamPath

This commit is contained in:
Max Crofts 2017-04-07 15:18:28 +10:00
parent d7a99d5d44
commit f5143405f1
1 changed files with 4 additions and 0 deletions

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