Browse Source

* autoload.cc (wsock_init): Properly define WSAStartup function pointer to

avoid stack damage.
cv-post-1_7_9
Christopher Faylor 16 years ago
parent
commit
63398011f9
  1. 5
      winsup/cygwin/ChangeLog
  2. 4
      winsup/cygwin/autoload.cc

5
winsup/cygwin/ChangeLog

@ -1,3 +1,8 @@
2011-02-05 Christopher Faylor <me+cygwin@cgf.cx>
* autoload.cc (wsock_init): Properly define WSAStartup function pointer
to avoid stack damage.
2011-02-02 Corinna Vinschen <corinna@vinschen.de>
* libc/bsdlib.cc: Include err.h.

4
winsup/cygwin/autoload.cc

@ -294,10 +294,10 @@ wsock_init ()
if (!wsock_started)
{
int (*wsastartup) (int, WSADATA *);
int __stdcall (*wsastartup) (int, WSADATA *);
/* Don't use autoload to load WSAStartup to eliminate recursion. */
wsastartup = (int (*)(int, WSADATA *))
wsastartup = (int __stdcall (*)(int, WSADATA *))
GetProcAddress ((HMODULE) (dll->handle), "WSAStartup");
if (wsastartup)
{

Loading…
Cancel
Save