[PATCH setup 2/3] nio-ie5: drop unnecessary LoadLibrary call

Yaakov Selkowitz yselkowi@redhat.com
Fri Jan 8 20:33:00 GMT 2016


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



More information about the Cygwin-apps mailing list