diff --git a/contrib/kh2reg.py b/contrib/kh2reg.py index 5f9463d0..3c2a9c5f 100755 --- a/contrib/kh2reg.py +++ b/contrib/kh2reg.py @@ -257,3 +257,14 @@ for line in fileinput.input(args): warn("trouble parsing key (%s), skipping" % k.msg) except BlankInputLine: pass + +# The spec at http://support.microsoft.com/kb/310516 says we need +# a blank line at the end of the reg file: +# +# Note the registry file should contain a blank line at the +# bottom of the file. +# +if output_type == 'windows': + # Output REG file header. + sys.stdout.write("\n") +