[patch] Don't append extra NUL to registry-strings.
Corinna Vinschen
corinna-cygwin@cygwin.com
Mon Aug 29 08:21:00 GMT 2005
On Aug 28 22:49, Bas van Gompel wrote:
> Hi,
>
> When RegQueryValueEx returns a string-type, the final NUL is included
> in the returned size. I suggest dropping it.
I see what you're up to, but there would be two reasons not to drop the
trailing \0. First, the \0 is part of the "file content" in a way.
Second, it would break backward compatibility with applications using
/proc/registry. This latter point concerns me a bit, though it can
naturally only affect Cygwin applications.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader mailto:cygwin@cygwin.com
Red Hat, Inc.
More information about the Cygwin-patches
mailing list