Skip to content

Conversation

@kant2002
Copy link
Contributor

Remove unused functions which trigger IL2050
As per discussed in #54317

Remove unused functions which trigger IL2050
As per discussed in dotnet#54317
@kant2002 kant2002 reopened this Jun 28, 2021
[DllImport(Libraries.Ole32)]
internal static extern int CoGetObjectContext([MarshalAs(UnmanagedType.LPStruct)] Guid riid, out IntPtr ppv);
[DllImport(Libraries.Ole32, PreserveSig = false)]
internal static extern IStream CreateStreamOnHGlobal(IntPtr hGlobal, bool fDeleteOnRelease);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took me a sec to figure out what was going on here. Thanks for fixing the swap.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hear you. I was in similar position before :)

@stephentoub
Copy link
Member

cc: @eerhardt

Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. Thanks for the fix up here.

@marek-safar marek-safar merged commit a38fc2f into dotnet:main Jul 13, 2021
@kant2002 kant2002 deleted the kant/remove-il2050-management branch July 14, 2021 04:26
@ghost ghost locked as resolved and limited conversation to collaborators Aug 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants