summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib')
-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;