microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
22.55k stars 1.4k forks source link

Fix mixed elevation integration issue by using MemoryStream (#4413) #4414

Closed ryfu-msft closed 2 months ago

ryfu-msft commented 2 months ago

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



Microsoft Reviewers: Open in CodeFlow