@@ -505,7 +505,7 @@ private static List<MUnit> CreateUnits()
505505 // Collect all of the ASLR-Incompatible files.
506506 HashSet < string > results = BinarySecurityAnalyzer . GetASLRIncompatibleExes ( ) ;
507507
508- // No incompatible files found means nothing has been applied
508+ // No incompatible files found means nothing has been applied.
509509 if ( results . Count is 0 )
510510 {
511511 return true ;
@@ -514,10 +514,10 @@ private static List<MUnit> CreateUnits()
514514 foreach ( string item in results )
515515 {
516516 // Use the filename to query registry, then match by full path.
517- // RetrieveSecurityConfigurationFromRegistryByName has a matching issue with full paths,
518- // so we use RetrieveSecurityConfigurationListFromRegistry and filter manually.
517+ // Using RetrieveSecurityConfigurationListFromRegistry and filter manually.
519518 string fileName = Path . GetFileName ( item ) ;
520519
520+ // Gets all of the policies for the selected file name but results contain full file paths.
521521 Result < List < AppMitigations > > registryResult = SecurityPolicyRepository . RetrieveSecurityConfigurationListFromRegistry ( fileName ) ;
522522
523523 // If no registry entry exists for this filename, the exclusion is not applied
@@ -526,7 +526,7 @@ private static List<MUnit> CreateUnits()
526526 return false ;
527527 }
528528
529- // Find the entry matching our specific file path
529+ // Find the entry matching our specific full file path
530530 AppMitigations ? matchingPolicy = null ;
531531 foreach ( AppMitigations policy in registryResult . Value )
532532 {
0 commit comments