Winreg EnumValue returns junk values
Volker.Lendecke at SerNet.DE
Mon Nov 20 13:46:18 GMT 2006
On Mon, Nov 20, 2006 at 02:44:58PM +0530, Chetan S wrote:
> I did find more about it. The problem is with the UTF-8 / UTF-16
> strings that get passed around. Here's the error reported by ndr_pull
See r19803, this fixes it for me.
> >Another thing: Did you already succeed in getting
> >registry-defined shares in smbd running? I'm asking because
> >I really want that feature, I'm close to doing it very soon
> Not really. Am entagled in trying to understand the problem. My
> immediate fear was whether the data I write goes in right or not. Its
> really tricky to understand if a write to the registry has worked if
> you cannot enumerate the values. Although the crude way I employed
> was to tdbdump and grep :)
> The UTF-16 requirements of windows clients creeps into the code. And
> interchangeably dealing with UTF-8/16 is a problem.
> Another problem with the UTF-16 code is the conversion routine
> convert_string_allocate ... I haven't had much success converting a
> CH_UNIX / CH_UTF8 string to UTF-16. The function returns a truncated
Need to look at that more, but thanks for the heads-up.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20061120/31b97ed4/attachment.bin
More information about the samba-technical