mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
r24023: Correctly support REG_BINARY in registry_push_value() and
registry_pull_value(). Guenther (This used to be commit 6a3c44fd99c91beddd9d6a04a30c35d429d0b9a5)
This commit is contained in:
parent
93c56c712c
commit
e14d97bd10
@ -107,8 +107,7 @@ WERROR registry_pull_value(TALLOC_CTX *mem_ctx,
|
||||
}
|
||||
break;
|
||||
case REG_BINARY:
|
||||
value->v.binary.data = talloc_move(value, &data);
|
||||
value->v.binary.length = length;
|
||||
value->v.binary = data_blob_talloc(mem_ctx, data, length);
|
||||
break;
|
||||
default:
|
||||
err = WERR_INVALID_PARAM;
|
||||
@ -148,6 +147,11 @@ WERROR registry_push_value(TALLOC_CTX *mem_ctx,
|
||||
}
|
||||
break;
|
||||
}
|
||||
case REG_BINARY:
|
||||
*presult = data_blob_talloc(mem_ctx,
|
||||
value->v.binary.data,
|
||||
value->v.binary.length);
|
||||
break;
|
||||
default:
|
||||
return WERR_INVALID_PARAM;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user