Fix build errors from PR #1039

This commit is contained in:
tomcw
2022-02-16 20:14:40 +00:00
parent 7ae8907674
commit 43b9df253a
6 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -171,7 +171,7 @@ void RegDeleteConfigSlotSection(UINT slot)
if (!g_sConfigFile.empty())
{
std::string& section = RegGetConfigSlotSection(slot);
std::string section = RegGetConfigSlotSection(slot);
return _ini::RegDeleteString(section.c_str(), peruser);
}
@@ -186,7 +186,7 @@ void RegDeleteConfigSlotSection(UINT slot)
&keyhandle);
if (status == ERROR_SUCCESS)
{
std::string& section = RegGetSlotSection(slot);
std::string section = RegGetSlotSection(slot);
LSTATUS status2 = RegDeleteKey(keyhandle, section.c_str());
if (status2 != ERROR_SUCCESS && status2 != ERROR_FILE_NOT_FOUND)
_ASSERT(0);