mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
Fix writing corrupt REG_SZ to the registry.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
This commit is contained in:
parent
45bb24e939
commit
5a7d48f82b
@ -124,8 +124,9 @@ _PUBLIC_ bool reg_string_to_val(TALLOC_CTX *mem_ctx,
|
||||
case REG_SZ:
|
||||
case REG_EXPAND_SZ:
|
||||
convert_string_talloc_convenience(mem_ctx, iconv_convenience, CH_UNIX, CH_UTF16,
|
||||
data_str, strlen(data_str),
|
||||
data_str, strlen(data_str)+1,
|
||||
(void **)&data->data, &data->length, false);
|
||||
|
||||
break;
|
||||
|
||||
case REG_DWORD: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user