diff options
Diffstat (limited to 'source3/lib/util_reg.c')
-rw-r--r-- | source3/lib/util_reg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_reg.c b/source3/lib/util_reg.c index 3f0b2d6a42..9fd8c13077 100644 --- a/source3/lib/util_reg.c +++ b/source3/lib/util_reg.c @@ -89,7 +89,7 @@ NTSTATUS reg_pull_multi_sz(TALLOC_CTX *mem_ctx, const void *buf, size_t len, size_t dstlen, thislen; thislen = strnlen_w(p, len) + 1; - dstlen = convert_string_allocate(*values, CH_UCS2, CH_UNIX, + dstlen = convert_string_allocate(*values, CH_UTF16LE, CH_UNIX, p, thislen*2, (void *)&val, True); if (dstlen == (size_t)-1) { |