[MKHIVE]: Fix string byte size vs. count in number of characters confusion in append_...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 2 Jun 2017 00:05:53 +0000 (00:05 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 2 Jun 2017 00:05:53 +0000 (00:05 +0000)
commitcead3c26acd6fdce7e497ae955eab76cb865976a
tree403af99bf9f252d49f76e5a948aa205334477cf2
parentb03f8990c05c074e8a55d8daa40654da4a0d359b
[MKHIVE]: Fix string byte size vs. count in number of characters confusion in append_multi_sz_value(); this was already OK in wine's code. Should fix corrupted multi-string entries in the livecd registry hives, for example...
In addition, always open the hive file to be created in write mode only.
CORE-13347

svn path=/trunk/; revision=74740
reactos/sdk/tools/mkhive/binhive.c
reactos/sdk/tools/mkhive/reginf.c