From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61893 invoked by alias); 8 Jan 2016 20:33:13 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 61819 invoked by uid 89); 8 Jan 2016 20:33:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=sk:yselkow, 41,13, 4113, sk:interne X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 08 Jan 2016 20:33:11 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 2191BF5DEF for ; Fri, 8 Jan 2016 20:33:10 +0000 (UTC) Received: from localhost.localdomain (ovpn-116-42.rdu2.redhat.com [10.10.116.42]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u08KX7PC002874 (version=TLSv1/SSLv3 cipher=AES256-SHA256 bits=256 verify=NO) for ; Fri, 8 Jan 2016 15:33:09 -0500 From: Yaakov Selkowitz 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 Message-Id: <1452285157-12712-3-git-send-email-yselkowi@redhat.com> In-Reply-To: <1452285157-12712-1-git-send-email-yselkowi@redhat.com> References: <1452285157-12712-1-git-send-email-yselkowi@redhat.com> X-SW-Source: 2016-01/txt/msg00009.txt.bz2 wininet.dll is already load-time dynamically linked. * nio-ie5 (NetIO): Drop unnecessary LoadLibrary call. Signed-off-by: Yaakov Selkowitz --- 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