mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Add missing RegCloseKey to Sys_SteamPath
This commit is contained in:
parent
d7a99d5d44
commit
f5143405f1
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue