This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Don't append extra NUL to registry-strings.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]