Skip to content

Commit

Permalink
Fixes #288: In should not appear with ComOutPtr
Browse files Browse the repository at this point in the history
  • Loading branch information
sotteson1 committed Feb 27, 2021
1 parent 42dfffe commit a7cdb49
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,7 @@ public Parameter(ClangSharpSourceWinmdGenerator generator, IMethodSymbol methodS
parameterAttributes |= ParameterAttributes.In;
}

if (symbolAttrs.Any(a => a.AttributeClass.Name == "OutAttribute"))
if (symbolAttrs.Any(a => a.AttributeClass.Name == "OutAttribute" || a.AttributeClass.Name == "ComOutPtrAttribute"))

This comment has been minimized.

Copy link
@Saibamen

Saibamen Feb 27, 2021

Maybe add unit tests for that change?

{
parameterAttributes |= ParameterAttributes.Out;
}
Expand Down

0 comments on commit a7cdb49

Please sign in to comment.