summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-20 13:39:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:56 -0500
commitded7c032a311afdda225bde70a9cb0581cd7ee48 (patch)
tree5b0bc401dc5f329b333035577d90214d9511b719 /source3
parent53c6548fbc6d4671e969cda8c988f64714223240 (diff)
downloadsamba-ded7c032a311afdda225bde70a9cb0581cd7ee48.tar.gz
samba-ded7c032a311afdda225bde70a9cb0581cd7ee48.tar.bz2
samba-ded7c032a311afdda225bde70a9cb0581cd7ee48.zip
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)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_winreg_nt.c2
1 files changed, 1 insertions, 1 deletions
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 );