[PATCH] Fix REG_MULTI_SZ save fromat - bug 824
msclrhd at googlemail.com
Mon Jan 7 14:04:30 CST 2008
On 07/01/2008, Alexandre Julliard <julliard at winehq.org> wrote:
> "Dan Kegel" <dank at kegel.com> writes:
> > Alexandre wrote:
> >> I don't think a non null-terminated MULTI_SZ string is very useful.
> >> Do you really have an app that depends on this?
> > http://www.xpregistrycleaner.com/embedded-null-characters/ claims
> > "some software vendors use the embedded-null registry key technique
> > as a way to enforce the software license agreement and to reduce the
> > ability of users to tamper with the license information stored in
> > these registry keys."
> Embedded nulls should work just fine. The case that doesn't work is
> string values that aren't properly null-terminated.
Is it possible to use a format like:
[using the quotes to determine the start/end of the string - this
would require processing on the string data, though]
[encoding the length in the stored data - this does not need any
processing, and counts any nulls if there are any]
More information about the wine-devel