Skip to content

Commit

Permalink
[MsvcDiver] Trim ':' in parent type name
Browse files Browse the repository at this point in the history
  • Loading branch information
theXappy committed Nov 2, 2024
1 parent 36ff9c9 commit ef4fb54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ScubaDiver/MsvcDiver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ protected override string MakeInvokeResponse(ScubaDiverMessage arg)
// Extend search to other types (this method might be inherited and hence found under another type's name.
// Turning `namespace::class::func` to `namespace::class`
string methodFullName = method.UndecoratedFullName;
string parentType = methodFullName.Substring(0, methodFullName.IndexOf(method.Name));
string parentType = methodFullName.Substring(0, methodFullName.IndexOf(method.Name)).TrimEnd(':');

typeFuncs = _exportsMaster.GetExportedTypeFunctions(module, parentType).ToList();
targetMethod = typeFuncs.SingleOrDefault(m => m.DecoratedName == method.DecoratedName);
Expand Down

0 comments on commit ef4fb54

Please sign in to comment.