Skip to content

Commit

Permalink
Changed validator to warn about malformed CurrentControlSet Registy key
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed May 22, 2017
1 parent 3efd542 commit 72b5520
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/validator.py
Expand Up @@ -89,6 +89,15 @@ def CheckFile(self, filename):
filename, artifact_definition, source)):
result = False

for key_path in source.keys:
key_path = key_path.upper()
if key_path.startswith(u'%%CURRENT_CONTROL_SET%%'):
logging.warning((
u'Artifact definition: {0} in file: {1} contains Windows '
u'Registry key path that starts with '
u'%%CURRENT_CONTROL_SET%%').format(
artifact_definition.name, filename))

except errors.FormatError as exception:
logging.warning(
u'Unable to validate file: {0} with error: {1}'.format(
Expand Down

0 comments on commit 72b5520

Please sign in to comment.