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

Fix mixed elevation integration issue by using MemoryStream #4413

Merged
merged 6 commits into from
Apr 26, 2024

Conversation

yao-msft
Copy link
Contributor

@yao-msft yao-msft commented Apr 26, 2024

This work is done together with @ryfu-msft

Tested and validated on both Ryan and my machine.

The issue is when InMemoryRandomAccessStream is used in ConfigurationRemoteServer, marshalling will complain about setting rpc security status too late. We fixed it by not using winrt InMemoryRandomAccessStream. Instead, we'll use System.IO.MemoryStream.

Microsoft Reviewers: Open in CodeFlow

@yao-msft yao-msft requested a review from a team as a code owner April 26, 2024 02:36
@yao-msft yao-msft merged commit 0aaccd6 into microsoft:master Apr 26, 2024
8 checks passed
ryfu-msft added a commit to ryfu-msft/winget-cli that referenced this pull request Apr 26, 2024
…t#4413)

This work is done together with @ryfu-msft 

Tested and validated on both Ryan and my machine.

The issue is when InMemoryRandomAccessStream is used in
ConfigurationRemoteServer, marshalling will complain about setting rpc
security status too late. We fixed it by not using winrt
InMemoryRandomAccessStream. Instead, we'll use System.IO.MemoryStream.
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/winget-cli/pull/4413)

---------

Co-authored-by: --global <[email protected]>
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.

None yet

2 participants