public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
From: corinna@sourceware.org
To: cygwin-apps-cvs@sourceware.org
Subject: [setup] branch master, updated. release_2.873-11-g820dab9
Date: Wed, 20 Jan 2016 17:53:00 -0000	[thread overview]
Message-ID: <20160120175359.14120.qmail@sourceware.org> (raw)




https://sourceware.org/git/gitweb.cgi?p=cygwin-setup.git;h=820dab935fc9282bab22fd2ead4bf1f2b6c788b8

commit 820dab935fc9282bab22fd2ead4bf1f2b6c788b8
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Wed Jan 20 18:53:52 2016 +0100

    Drop Windows 2000 considerations from installer code
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>


Diff:
---
 install.cc |   17 +++--------------
 1 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/install.cc b/install.cc
index e025485..2b714bc 100644
--- a/install.cc
+++ b/install.cc
@@ -337,20 +337,9 @@ Installer::extract_replace_on_reboot (archive *tarstream, const std::string& pre
 
       WCHAR sname[s.size () + 7];
       WCHAR dname[d.size () + 7];
-      /* Windows 2000 has a bug:  Prepending \\?\ does not
-       * work in conjunction with MOVEFILE_DELAY_UNTIL_REBOOT.
-       * So in case of Windows 2000 we just convert the path
-       * to wide char and hope for the best. */
-      if (OSMajorVersion () == 5 && OSMinorVersion () == 0)
-	{
-	  mbstowcs (sname, s.c_str (), s.size () + 7);
-	  mbstowcs (dname, d.c_str (), d.size () + 7);
-	}
-      else
-	{
-	  mklongpath (sname, s.c_str (), s.size () + 7);
-	  mklongpath (dname, d.c_str (), d.size () + 7);
-	}
+
+      mklongpath (sname, s.c_str (), s.size () + 7);
+      mklongpath (dname, d.c_str (), d.size () + 7);
       if (!MoveFileExW (sname, dname,
                         MOVEFILE_DELAY_UNTIL_REBOOT |
                         MOVEFILE_REPLACE_EXISTING))


                 reply	other threads:[~2016-01-20 17:53 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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20160120175359.14120.qmail@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-apps-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

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