Skip to content

Commit

Permalink
Fix errors in Get_String_From_Registry, Get_String_From_Generals_Regi…
Browse files Browse the repository at this point in the history
…stry
  • Loading branch information
xezon committed Mar 6, 2024
1 parent b013231 commit b17b589
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/game/common/system/registryget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ bool Get_String_From_Registry(Utf8String subkey, Utf8String value, Utf8String &d
bool success = getStringFromReg(HKEY_LOCAL_MACHINE, key, value, destination);

if (!success) {
return getStringFromReg(HKEY_CURRENT_USER, key, value, destination);
success = getStringFromReg(HKEY_CURRENT_USER, key, value, destination);
}

return false;
return success;
#else
return false;
#endif
Expand All @@ -83,10 +83,10 @@ bool Get_String_From_Generals_Registry(Utf8String subkey, Utf8String value, Utf8
bool success = getStringFromReg(HKEY_LOCAL_MACHINE, key, value, destination);

if (!success) {
return getStringFromReg(HKEY_CURRENT_USER, key, value, destination);
success = getStringFromReg(HKEY_CURRENT_USER, key, value, destination);
}

return false;
return success;
#else
return false;
#endif
Expand Down

0 comments on commit b17b589

Please sign in to comment.