mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 17:53:58 +08:00
Allow system lock down test debug hook to work with new wldp API (fixes system lock down tests) (#18962)
This commit is contained in:
parent
3fb4bb277b
commit
5f8f15a24c
@ -110,9 +110,9 @@ namespace System.Management.Automation.Security
|
||||
{
|
||||
SafeHandle fileHandle = fileStream.SafeFileHandle;
|
||||
|
||||
// First check latest WDAC APIs if available.
|
||||
// First check latest WDAC APIs if available. Also revert to legacy APIs if debug hook is in effect.
|
||||
Exception errorException = null;
|
||||
if (s_wldpCanExecuteAvailable)
|
||||
if (s_wldpCanExecuteAvailable && !s_allowDebugOverridePolicy)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user