Skip to content

Fix COM object creation in ExtensionWrapper #40092

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

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

jtschuster
Copy link
Member

Summary of the Pull Request

Removes extra call to Marshal.GetIUnknownForObject. This method is meant to take a .NET object that implements a COM interface and return a pointer to a COM instance that can be passed to native COM code, but the code was passing a COM instance pointer.

PR Checklist

  • Closes: No associated issue
  • Communication: Working with @moooyo on AOT and COM
  • Tests: No change in behavior expected, so no new tests
  • Localization: No new strings
  • Dev docs: No change in behavior
  • New binaries: none

@moooyo
Copy link
Contributor

moooyo commented Jun 18, 2025

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@moooyo moooyo merged commit 04bba95 into microsoft:main Jun 18, 2025
9 checks passed
@moooyo moooyo mentioned this pull request Jun 18, 2025
@yeelam-gordon yeelam-gordon added the Product-Command Palette Refers to the Command Palette utility label Jun 18, 2025
@yeelam-gordon yeelam-gordon added this to the PowerToys 0.92 milestone Jun 18, 2025
yeelam-gordon pushed a commit that referenced this pull request Jun 20, 2025
<!-- Enter a brief description/summary of your PR here. What does it
fix/what does it change/how was it tested (even manually, if necessary)?
-->
## Summary of the Pull Request
Removes extra call to Marshal.GetIUnknownForObject. This method is meant
to take a .NET object that implements a COM interface and return a
pointer to a COM instance that can be passed to native COM code, but the
code was passing a COM instance pointer.

<!-- Please review the items on the PR checklist before submitting-->
## PR Checklist

- [X] **Closes:** No associated issue
- [X] **Communication:** Working with @moooyo on AOT and COM
- [X] **Tests:** No change in behavior expected, so no new tests
- [X] **Localization:** No new strings
- [X] **Dev docs:** No change in behavior
- [X] **New binaries:** none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product-Command Palette Refers to the Command Palette utility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants