summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-10-14 21:43:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:00 -0500
commit5b52e4a0eb8cd4a68eb35114576ccc0ae85c2a1a (patch)
tree94cab35342abb20ed2713277cad1a64f228c20df /source3/rpc_server
parent1b9122943558fa903991ba1353e04faacdac85fe (diff)
downloadsamba-5b52e4a0eb8cd4a68eb35114576ccc0ae85c2a1a.tar.gz
samba-5b52e4a0eb8cd4a68eb35114576ccc0ae85c2a1a.tar.bz2
samba-5b52e4a0eb8cd4a68eb35114576ccc0ae85c2a1a.zip
r11072: add routines for converting REG_MULTI_SZ to and from char**
(This used to be commit e858eed813b5a9a8d57262142c5bbde2951b5590)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_reg_nt.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_reg_nt.c b/source3/rpc_server/srv_reg_nt.c
index 4cd824c9ef..35a060c38e 100644
--- a/source3/rpc_server/srv_reg_nt.c
+++ b/source3/rpc_server/srv_reg_nt.c
@@ -537,9 +537,21 @@ WERROR _reg_enum_value(pipes_struct *p, REG_Q_ENUM_VALUE *q_u, REG_R_ENUM_VALUE
goto done;
}
+#if 0 /* JERRY TEST CODE */
if ( val->type == REG_MULTI_SZ ) {
-
+ char **str;
+ int num_strings = regval_convert_multi_sz( (uint16*)regval_data_p(val), regval_size(val), &str );
+ uint16 *buffer;
+ size_t buf_size;
+
+
+ if ( num_strings )
+ buf_size = regval_build_multi_sz( str, &buffer );
+
+ TALLOC_FREE( str );
+ TALLOC_FREE( buffer );
}
+#endif
DEBUG(10,("_reg_enum_value: retrieved value named [%s]\n", val->valuename));