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.


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


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