On Sat, 28 May 2022 09:22:12 -0400 Ken Brown wrote: > On 5/27/2022 8:36 AM, Takashi Yano wrote: > > diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc > > index 01b49468e..34c9e2bc7 100644 > > --- a/winsup/cygwin/cygheap.cc > > +++ b/winsup/cygwin/cygheap.cc > > @@ -183,6 +183,11 @@ init_cygheap::init_installation_root () > > if (p) > > p = wcschr (p + 1, L'\\'); /* Skip share name */ > > } > > + else > > + { > > + len = 4; > > + p = installation_root_buf + 4; > > + } > > } > > installation_root_buf[1] = L'?'; > > RtlInitEmptyUnicodeString (&installation_key, installation_key_buf, > > This looks right to me. I would just suggest an explanatory comment, > something > like this: > > + else /* Long path prefix followed by drive letter path */
Thanks for the advice. I will submit the patch to cygwin-patches mailing list. -- Takashi Yano <takashi.y...@nifty.ne.jp> -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple