Skip to content

Commit

Permalink
Remove extra check that the system dll exists (#10244)
Browse files Browse the repository at this point in the history
  • Loading branch information
iSazonov authored and TravisEz13 committed Aug 5, 2019
1 parent 30351c8 commit d7811c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

# Area: Security
# @TravisEz13 @PaulHigin
src/System.Management.Automation/security/wldpNativeMethods.cs @TravisEz13 @PaulHigin

# Area: Documentation
.github/ @joeyaiello @TravisEz13
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,8 @@ public static SystemEnforcementMode GetLockdownPolicy(string path, SafeHandle ha
private static SystemEnforcementMode GetWldpPolicy(string path, SafeHandle handle)
{
// If the WLDP assembly is missing (such as windows 7 or down OS), return default/None to skip WLDP validation
if (s_hadMissingWldpAssembly || !IO.File.Exists(IO.Path.Combine(Environment.SystemDirectory, "wldp.dll")))
if (s_hadMissingWldpAssembly)
{
s_hadMissingWldpAssembly = true;
return s_cachedWldpSystemPolicy.GetValueOrDefault(SystemEnforcementMode.None);
}

Expand Down

0 comments on commit d7811c8

Please sign in to comment.