Skip to content

Commit

Permalink
Use GetAddressOrZero instead of Resolve in ResolveFirstMatching, as t…
Browse files Browse the repository at this point in the history
…he symbol name has already been validated.
  • Loading branch information
DaZombieKiller committed Sep 14, 2020
1 parent 70e0bf1 commit fe16fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Unity/SymbolResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public IntPtr ResolveFirstMatching(Regex regex)
if (string.IsNullOrEmpty(name))
throw new UnresolvedSymbolException(regex.ToString());

return Resolve(name);
return GetAddressOrZero(name);
}

public unsafe T* ResolveFirstMatching<T>(Regex regex)
Expand Down

0 comments on commit fe16fd9

Please sign in to comment.