public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: cygwin-apps@cygwin.com
Subject: [PATCH setup 2/3] nio-ie5: drop unnecessary LoadLibrary call
Date: Fri, 08 Jan 2016 20:33:00 -0000	[thread overview]
Message-ID: <1452285157-12712-3-git-send-email-yselkowi@redhat.com> (raw)
In-Reply-To: <1452285157-12712-1-git-send-email-yselkowi@redhat.com>

wininet.dll is already load-time dynamically linked.

	* nio-ie5 (NetIO): Drop unnecessary LoadLibrary call.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 nio-ie5.cc | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/nio-ie5.cc b/nio-ie5.cc
index db4666c..c66cf52 100644
--- a/nio-ie5.cc
+++ b/nio-ie5.cc
@@ -41,13 +41,6 @@ NetIO (_url)
 
   if (internet == 0)
     {
-      HINSTANCE h = LoadLibrary ("wininet.dll");
-      if (!h)
-	{
-	  note (NULL, IDS_WININET);
-	  connection = 0;
-	  return;
-	}
       InternetAttemptConnect (0);
       internet = InternetOpen ("Cygwin Setup", INTERNET_OPEN_TYPE_PRECONFIG,
 			       NULL, NULL, 0);
-- 
2.6.2

  parent reply	other threads:[~2016-01-08 20:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-08 20:33 [PATCH setup 0/3] Drop Windows 9x-related code Yaakov Selkowitz
2016-01-08 20:33 ` [PATCH setup 3/3] Use Winsock 2 throughout Yaakov Selkowitz
2016-01-08 20:33 ` Yaakov Selkowitz [this message]
2016-01-08 20:33 ` [PATCH setup 1/3] propsheet: drop support for Common Controls v4 Yaakov Selkowitz
2016-01-09 13:54 ` [PATCH setup 0/3] Drop Windows 9x-related code Corinna Vinschen

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=1452285157-12712-3-git-send-email-yselkowi@redhat.com \
    --to=yselkowi@redhat.com \
    --cc=cygwin-apps@cygwin.com \
    /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).