RegSetValueEx problem?

davep davep at cyw.uklinux.net
Mon Apr 2 14:14:11 CDT 2001


On Sun, 01 Apr 2001, you wrote:
> At 01:59 PM 31/03/2001 +0100, you wrote:
> 
> <snip>
> >Compiling and running Winemine under Windows 95 this problem doesn't occur.
> >Win95 truncates the value at the first null.
> 
> Under NT4 SP6, if I write (for example) '47' + 0 + 13 bytes of garbage, I get
> exactly that when querying with the same buffer length (16).
> If I use a longer buffer, one binary 0 is appended.
> If I use a shorter buffer, nothing is copied and the function does not succeed
> (ERROR_MORE_DATA).
> 
> Of course under Regedit the garbage is not displayed; regedit displays only '47'
> in this case.

Ah, I didn't know Regedit was not giving the true value. That complicates
matters even more. It seems I'll have to do some experiments.
-- 
Dave Pickles





More information about the wine-devel mailing list