1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00

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 commit is contained in:
Volker Lendecke 2006-11-20 13:39:01 +00:00 committed by Gerald (Jerry) Carter
parent 4c96a387a2
commit 8df6544fa8

View File

@ -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 );