[patch] load wininet dynamically in cygcheck
Corinna Vinschen
corinna-cygwin@cygwin.com
Sun Jan 15 09:30:00 GMT 2006
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
More information about the Cygwin-patches
mailing list