summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-05-20 18:32:37 +0200
committerGünther Deschner <gd@samba.org>2010-05-20 18:44:07 +0200
commitaadd29356ee5785d11ebe072459b7dd3747ed9ed (patch)
tree44c0e20270322ed1aa1894912f6b7834ccb69bea /source3
parentfb16ac229beb9ce9d37b49ab6cb630d60c95ee9e (diff)
downloadsamba-aadd29356ee5785d11ebe072459b7dd3747ed9ed.tar.gz
samba-aadd29356ee5785d11ebe072459b7dd3747ed9ed.tar.bz2
samba-aadd29356ee5785d11ebe072459b7dd3747ed9ed.zip
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
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_reg_api.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/util_reg_api.c b/source3/lib/util_reg_api.c
index 4347e5d6ed..347c5d6d89 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);