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

Ensure that windows-bindgen properly processes certain methods and functions that have an unsupported trailing array parameter. #3402

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

iancormac84
Copy link

This pull request fixes an issue where windows-bindgen confuses an unsupported trailing array parameter for a result value and then generates code that dereferences it and tries to return it.

@kennykerr I believe I have tracked down the source of the reintroduction of the bug that had been reported prior. You mentioned providing a minimal repro in #3384. I added a generated test in the code to ensure that it's working as expected. Please let me know if this is what you expected, and what else, if anything, that I need to do to get this pull request accepted. Thanks!

…ng array parameter that is confused for a result value and returned as such.
@iancormac84
Copy link
Author

@microsoft-github-policy-service agree

@kennykerr
Copy link
Collaborator

Oh, this looks like it impacts parameters that are attributed as array parameters but that are then discarded as invalid by windows-bindgen.

@iancormac84 iancormac84 marked this pull request as ready for review December 23, 2024 14:40
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.

2 participants