This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [patch] load wininet dynamically in cygcheck
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Sun, 15 Jan 2006 10:30:09 +0100
- Subject: Re: [patch] load wininet dynamically in cygcheck
- References: <43C7F635.9FDD093F@dessent.net>
- Reply-to: cygwin-patches at cygwin dot com
On Jan 13 10:49, Brian Dessent wrote:
>
> This uses LoadLibrary and GetProcAddress instead of -lwininet so that systems
> lacking IE3 can still run cygcheck. Tested on XP and NT4, and verified that
> with WININET.DLL renamed cygcheck can still function.
>
> 2006-01-13 Brian Dessent <brian@dessent.net>
>
> * Makefile.in (cygcheck.exe): Do not link against libwininet.a.
> * cygcheck.cc (pInternetCloseHandle): Define global function pointer.
> (display_internet_error): Use it.
> (package_grep): Attempt to load wininet.dll at runtime. Call WinInet
> API through function pointers throughout.
I tested it additionally on my NT4 which never had IE3 installed and it
works fine, as on XP and 2K3-WOW64.
Thanks, applied.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat