From ded7c032a311afdda225bde70a9cb0581cd7ee48 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 20 Nov 2006 13:39:01 +0000 Subject: r19803: Fix problem reported by Chetan S: QueryInfoKey needs to report the max name length in *bytes* for UTF-16, not the string length. This got lost during the conversion. This took a while to figure out :-) Thanks to Chetan! Volker (This used to be commit 8df6544fa855d2d07b1b69c8d448a1362e41733c) --- source3/rpc_server/srv_winreg_nt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/rpc_server/srv_winreg_nt.c b/source3/rpc_server/srv_winreg_nt.c index 1a130f19b6..f733b14c63 100644 --- a/source3/rpc_server/srv_winreg_nt.c +++ b/source3/rpc_server/srv_winreg_nt.c @@ -190,7 +190,7 @@ static BOOL get_value_information( REGISTRY_KEY *key, uint32 *maxnum, } *maxnum = num_values; - *maxlen = lenmax; + *maxlen = lenmax*2; *maxsize = sizemax; TALLOC_FREE( values ); -- cgit