From b381fba0892021f164223bae8b0951014a28735e Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 29 Jun 2010 16:13:15 +0200 Subject: s3-registry: avoid using registry_value union. Just pull and push data as is. Guenther --- source3/include/registry.h | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'source3/include') diff --git a/source3/include/registry.h b/source3/include/registry.h index 00c27cf021..9e7a1d2d0f 100644 --- a/source3/include/registry.h +++ b/source3/include/registry.h @@ -23,29 +23,9 @@ #ifndef _REGISTRY_H #define _REGISTRY_H -/* - * A REG_SZ string is not necessarily NULL terminated. When retrieving it from - * the net, we guarantee this however. A server might want to push it without - * the terminator though. - */ - -struct registry_string { - size_t len; - char *str; -}; - struct registry_value { enum winreg_Type type; - union { - uint32 dword; - uint64 qword; - struct registry_string sz; - struct { - uint32 num_strings; - char **strings; - } multi_sz; - DATA_BLOB binary; - } v; + DATA_BLOB data; }; /* forward declarations. definitions in reg_objects.c */ -- cgit