summaryrefslogtreecommitdiff
path: root/source4/lib/registry
diff options
context:
space:
mode:
authorWilco Baan Hofman <wilco@baanhofman.nl>2010-03-28 17:07:09 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-03-29 18:44:00 +0200
commit38fc9dfdc6046e21cd8f0127e2cd88f72f81b3b3 (patch)
tree4932881b22c13c66ba76bbd30ba4f6fe83fce3c4 /source4/lib/registry
parent2d6791286b97236136de468ebf4173bd35336b6e (diff)
downloadsamba-38fc9dfdc6046e21cd8f0127e2cd88f72f81b3b3.tar.gz
samba-38fc9dfdc6046e21cd8f0127e2cd88f72f81b3b3.tar.bz2
samba-38fc9dfdc6046e21cd8f0127e2cd88f72f81b3b3.zip
Revert reordering from commit 51bedf939568717424edd7732e1e315faa333849
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4/lib/registry')
-rw-r--r--source4/lib/registry/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/registry/util.c b/source4/lib/registry/util.c
index 18eb4ec626..ee3bb151b2 100644
--- a/source4/lib/registry/util.c
+++ b/source4/lib/registry/util.c
@@ -79,9 +79,6 @@ _PUBLIC_ char *reg_val_data_string(TALLOC_CTX *mem_ctx,
(void **)&ret,
NULL, false);
break;
- case REG_BINARY:
- ret = data_blob_hex_string_upper(mem_ctx, &data);
- break;
case REG_DWORD:
case REG_DWORD_BIG_ENDIAN:
SMB_ASSERT(data.length == sizeof(uint32_t));
@@ -93,6 +90,9 @@ _PUBLIC_ char *reg_val_data_string(TALLOC_CTX *mem_ctx,
ret = talloc_asprintf(mem_ctx, "0x%16.16llx",
BVAL(data.data, 0));
break;
+ case REG_BINARY:
+ ret = data_blob_hex_string_upper(mem_ctx, &data);
+ break;
case REG_NONE:
/* "NULL" is the right return value */
break;