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: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'cygwin-patches mailing-list'" <cygwin-patches at cygwin dot com>
- Date: Mon, 5 Sep 2005 11:31:28 +0100
- Subject: RE: [patch] Don't append extra NUL to registry-strings.
----Original Message----
>From: Buzz
>Sent: 04 September 2005 04:06
>> To me this is the even more important reason. Some registry strings
>> do include the trailing zero, some don't;
>
> I don't see how this could be.
Because internally (native API) the registry stores NT-style
UNICODE_STRING structures, which have an explicit length count. See also
http://www.sysinternals.com/Information/TipsAndTrivia.html#HiddenKeys
http://blogs.msdn.com/oldnewthing/archive/2004/08/24/219444.aspx
cheers,
DaveK
--
Can't think of a witty .sigline today....