Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interop interfaces are all pass-by-ref for IID param #894

Merged
merged 2 commits into from
Jun 23, 2021

Conversation

Scottj1s
Copy link
Member

@Scottj1s Scottj1s commented Jun 22, 2021

fixes #885

fixed interop IDL, and decided to just keep the TestHWND I created earlier (when I thought it was an HWND marshaling issue)

Note that:
for 64-bit calling convention, a 128-bit value ends up being passed by address, so we get lucky
for 32-bit calling convention, a 128-bit value is passed directly on the stack, so we get corruption when the callee attempts to interpret the first 4 bytes of that GUID as a pointer to one.

@manodasanW
Copy link
Member

Is there any impact to the Windows SDK projection public API surface / assembly version from this change? I see all the types that were modified had ProjectionInternal, but want to confirm there is indeed no impact.

@Scottj1s
Copy link
Member Author

Is there any impact to the Windows SDK projection public API surface / assembly version from this change? I see all the types that were modified had ProjectionInternal, but want to confirm there is indeed no impact.

There shouldn't be any impact - the interop IDL is used solely to generate projection sources for the Windows SDK

@Scottj1s Scottj1s requested a review from manodasanW June 23, 2021 02:00
@Scottj1s Scottj1s merged commit ffcc290 into master Jun 23, 2021
@Scottj1s Scottj1s deleted the scottj1s/interop_ref_guid branch June 23, 2021 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

COM interop helpers are crashing in x86
2 participants