This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [patch] Don't append extra NUL to registry-strings.
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Mon, 29 Aug 2005 10:21:19 +0200
- Subject: Re: [patch] Don't append extra NUL to registry-strings.
- References: <n2m-g.detf2n.3vv9c19.1@buzzy-box.bavag>
- Reply-to: cygwin-patches at cygwin dot com
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.