This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[PATCH setup 2/3] nio-ie5: drop unnecessary LoadLibrary call
- From: Yaakov Selkowitz <yselkowi at redhat dot com>
- To: cygwin-apps at cygwin dot com
- Date: Fri, 8 Jan 2016 14:32:36 -0600
- Subject: [PATCH setup 2/3] nio-ie5: drop unnecessary LoadLibrary call
- Authentication-results: sourceware.org; auth=none
- References: <1452285157-12712-1-git-send-email-yselkowi at redhat dot 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