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:
parent
4c96a387a2
commit
8df6544fa8
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user