1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +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 used to be commit 8df6544fa855d2d07b1b69c8d448a1362e41733c)
This commit is contained in:
Volker Lendecke 2006-11-20 13:39:01 +00:00 committed by Gerald (Jerry) Carter
parent 53c6548fbc
commit ded7c032a3

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