From aadd29356ee5785d11ebe072459b7dd3747ed9ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Thu, 20 May 2010 18:32:37 +0200 Subject: [PATCH] s3-registry: support REG_DWORD_BIG_ENDIAN. Just treat it as a REG_DWORD for now. Long term all these checks will need to pass away, once we get a real registry... Guenther --- source3/lib/util_reg_api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/lib/util_reg_api.c b/source3/lib/util_reg_api.c index 4347e5d6ed7..347c5d6d890 100644 --- a/source3/lib/util_reg_api.c +++ b/source3/lib/util_reg_api.c @@ -39,6 +39,7 @@ WERROR registry_pull_value(TALLOC_CTX *mem_ctx, switch (type) { case REG_DWORD: + case REG_DWORD_BIG_ENDIAN: if ((size != 4) || (length != 4)) { err = WERR_INVALID_PARAM; goto error; @@ -151,7 +152,8 @@ WERROR registry_push_value(TALLOC_CTX *mem_ctx, DATA_BLOB *presult) { switch (value->type) { - case REG_DWORD: { + case REG_DWORD: + case REG_DWORD_BIG_ENDIAN: { char buf[4]; SIVAL(buf, 0, value->v.dword); *presult = data_blob_talloc(mem_ctx, (void *)buf, 4); -- 2.11.4.GIT