diff --git a/code/sys/sys_win32.c b/code/sys/sys_win32.c index da7241a7..6bf0828c 100644 --- a/code/sys/sys_win32.c +++ b/code/sys/sys_win32.c @@ -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