s4:registry - "LDB backend" - reg_key_get_info - adapt max. subkey and value length
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Sun, 21 Mar 2010 14:33:52 +0000 (15:33 +0100)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Sun, 21 Mar 2010 14:33:52 +0000 (15:33 +0100)
commitad83995de5df5a738c2fdad48866e226533b9b0a
tree339c3ea3a51e4cf597fd4c09d0c7156dd1ee0e5f
parent2bbdb2cd34233b0836f1aa7365e02c85494af4fa
s4:registry - "LDB backend" - reg_key_get_info - adapt max. subkey and value length

Those lengths are measured in UTF8 string lengths and not in UTF16 ones (the
returned strings are generally in this format). Discovered this by checking the
s3 registry code.
Therefore we have to multiply the both numbers by two.

Discovered with the "regedt32" (old NT registry editor).
source4/lib/registry/ldb.c