summaryrefslogtreecommitdiff
path: root/source4/lib/registry/reg_backend_nt4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-05-23 12:01:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:53:53 -0500
commitf371d2454298b0e64978c04056da5635d7e72921 (patch)
tree5bbe9b4bd4235992ced31c093aa358b89854f649 /source4/lib/registry/reg_backend_nt4
parentf7a7192eff21fb48e4bd41ce65d0c0c175d4a1fb (diff)
downloadsamba-f371d2454298b0e64978c04056da5635d7e72921.tar.gz
samba-f371d2454298b0e64978c04056da5635d7e72921.tar.bz2
samba-f371d2454298b0e64978c04056da5635d7e72921.zip
r828: Some fixes in the core and regshell concerning hives and
unicode (This used to be commit 25c27b176c9905f3968e955f33a6db41b0102a38)
Diffstat (limited to 'source4/lib/registry/reg_backend_nt4')
-rw-r--r--source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c b/source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c
index 255389624e..a28f1880db 100644
--- a/source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c
+++ b/source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c
@@ -1085,12 +1085,15 @@ static WERROR nk_to_key(REG_HANDLE *h, NK_HDR *nk_hdr, int size, REG_KEY *parent
if (clsname_len) { /* Just print in Ascii for now */
smb_ucs2_t *clsnamep;
int clsnam_off;
+ char *clsnameu;
clsnam_off = IVAL(&nk_hdr->clsnam_off,0);
clsnamep = (smb_ucs2_t *)LOCN(regf->base, clsnam_off);
DEBUG(2, ("Class Name Offset: %0X\n", clsnam_off));
- tmp->class_name = talloc_strdup_w(h->mem_ctx, clsnamep);
+ clsnameu = acnv_u2ux(clsnamep);
+ tmp->class_name = talloc_strdup(tmp->mem_ctx, clsnameu);
+ SAFE_FREE(clsnameu);
DEBUGADD(2,(" Class Name: %s\n", cls_name));