forked from microsoft/winget-cli
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WinGetCommandLineInterfaces Group Policy Exception for COM API Calls
[WHY:] Currently, the policy check within Command::Execute, which is executed for all command implementations, also inadvertently blocks COM API calls due to inheritance from the command class. [FIX:] Allow COM API calls while the WinGetCommandLineInterfaces group policy is disabled. The fix involves bypassing the policy check for calls originating from COM API, identified by a context flag set in the overridden Execute method in COMCommand. [TODOs:] - Test run to make sure fix works as expected
- Loading branch information
1 parent
256c385
commit dfc73b6
Showing
4 changed files
with
39 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters