Skip to content

Commit

Permalink
Use strategy in StrategyBasedComWrappers.ComputeVtables (#92085)
Browse files Browse the repository at this point in the history
Co-authored-by: Jackson Schuster <36744439+jtschuster@users.noreply.github.com>
  • Loading branch information
jkoritzinsky and jtschuster authored Sep 18, 2023
1 parent e1ca02f commit 1f9764f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static IIUnknownInterfaceDetailsStrategy GetInteropStrategy()
/// <inheritdoc cref="ComWrappers.ComputeVtables" />
protected sealed override unsafe ComInterfaceEntry* ComputeVtables(object obj, CreateComInterfaceFlags flags, out int count)
{
if (obj.GetType().GetCustomAttribute(typeof(ComExposedClassAttribute<>)) is IComExposedDetails details)
if (GetOrCreateInterfaceDetailsStrategy().GetComExposedTypeDetails(obj.GetType().TypeHandle) is { } details)
{
return details.GetComInterfaceEntries(out count);
}
Expand Down

0 comments on commit 1f9764f

Please sign in to comment.