0
0
Fork 0

Fix return value of Get function when a result does not yet exist for the address. (#5768)

This commit is contained in:
sharmander 2023-10-07 08:42:10 -07:00 committed by GitHub
parent f460ecc182
commit e40470bbe1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,6 @@ namespace ARMeilleure.Diagnostics
public static string Get(ulong address)
{
if (_symbols.TryGetValue(address, out string result))
{
return result;
@ -57,7 +56,8 @@ namespace ARMeilleure.Diagnostics
resultBuilder.Append($"+{rem}");
}
_symbols.TryAdd(address, resultBuilder.ToString());
result = resultBuilder.ToString();
_symbols.TryAdd(address, result);
return result;
}