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

Dave Korn dave.korn@artimi.com
Mon Sep 5 10:31:00 GMT 2005


----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....



More information about the Cygwin-patches mailing list