This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] load wininet dynamically in cygcheck


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]