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:
parent
53c6548fbc
commit
ded7c032a3
@ -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…
x
Reference in New Issue
Block a user