public inbox for
help / color / mirror / Atom feed
From: Takashi Yano <>
Subject: [newlib-cygwin] Cygwin: cygheap: Fix the issue of cygwin1.dll in the root directory.
Date: Sat, 28 May 2022 15:42:45 +0000 (GMT)	[thread overview]
Message-ID: <> (raw);h=871ca7ba64694e2a3c62d144e2d760bab3dd4a64

commit 871ca7ba64694e2a3c62d144e2d760bab3dd4a64
Author: Takashi Yano <>
Date:   Fri May 27 21:54:36 2022 +0900

    Cygwin: cygheap: Fix the issue of cygwin1.dll in the root directory.
    - After the commit 6d898f43, cygwin fails to start if cygwin1.dll
      is placed in the root directory. This patch fixes the issue.

 winsup/cygwin/ | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/winsup/cygwin/ b/winsup/cygwin/
index 1be7f0c32..b72bc5a08 100644
--- a/winsup/cygwin/
+++ b/winsup/cygwin/
@@ -183,6 +183,11 @@ init_cygheap::init_installation_root ()
 	  if (p)
 	    p = wcschr (p + 1, L'\\');  /* Skip share name */
+      else /* Long path prefix followed by drive letter path */
+	{
+	  len = 4;
+	  p += 4;
+	}
   installation_root_buf[1] = L'?';
   RtlInitEmptyUnicodeString (&installation_key, installation_key_buf,

                 reply	other threads:[~2022-05-28 15:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).