From: Richard Jones Date: Wed, 28 Apr 2010 13:28:27 +0000 (+0100) Subject: regedit: Add implicit nul-termination when importing strings. X-Git-Tag: 1.2.2~1 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=81cc08b749bde37f364400c2b983d1e73e8dde21;hp=81cc08b749bde37f364400c2b983d1e73e8dde21;p=hivex.git regedit: Add implicit nul-termination when importing strings. When you import a string value like: "Foo"="Bar" using Windows regedit program, implicit nul-termination is added to the value (not the key), so what is stored in the value would be something like: hex(1):42,00,61,00,72,00,00,00 where two of the trailing zero bytes come from the implicit terminator. This corrects the reg_import function so it works the same way. ---