mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
RegCloseKey when we are done with RegOpenKeyEx.
git-svn-id: https://svn.eduke32.com/eduke32@4127 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
975a329fcf
commit
837c5c6b84
1 changed files with 4 additions and 0 deletions
|
@ -284,6 +284,7 @@ const char * G_GetInstallPath(int32_t insttype)
|
|||
// KEY_WOW64_32KEY gets us around Wow6432Node on 64-bit builds
|
||||
|
||||
if (keygood == ERROR_SUCCESS)
|
||||
{
|
||||
switch (insttype)
|
||||
{
|
||||
case INSTPATH_STEAM:
|
||||
|
@ -293,6 +294,9 @@ const char * G_GetInstallPath(int32_t insttype)
|
|||
success[insttype] = SHGetValueA(HKLM32, "SOFTWARE\\GOG.com\\GOGDUKE3D", "PATH", NULL, spath[insttype], (LPDWORD)&siz);
|
||||
break;
|
||||
}
|
||||
|
||||
RegCloseKey(HKLM32);
|
||||
}
|
||||
}
|
||||
|
||||
if (success[insttype] == ERROR_SUCCESS)
|
||||
|
|
Loading…
Reference in a new issue