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

Use BSTR allocator as PCSTR and PCWSTR parameter allocator #1657

Merged
merged 6 commits into from
Apr 4, 2022

Conversation

kennykerr
Copy link
Collaborator

@kennykerr kennykerr commented Apr 4, 2022

BSTRs are length-prefixed buffers so the pointer is sufficient to free the allocation. This makes it ideal for PCSTR and PCWSTR since they can only hold on to the pointer.

Fixes #1652
Fixes #1601

This includes a workaround for microsoft/win32metadata#868

@kennykerr kennykerr requested a review from riverar April 4, 2022 19:08
@kennykerr kennykerr merged commit ea1a991 into master Apr 4, 2022
@kennykerr kennykerr deleted the boxed_string_params branch April 4, 2022 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants