diff options
author | Christopher Faylor <me@cgf.cx> | 2011-02-05 19:38:21 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-02-05 19:38:21 +0000 |
commit | 63398011f942cb53bb9f02587dc62d6a6fe91b5d (patch) | |
tree | 4dcdbeef027b75ddc6920ddfe81c9bda3b829a14 /winsup/cygwin/autoload.cc | |
parent | 103e45ba4d110e9ba34f24d4c2cdfa47420a2906 (diff) | |
download | cygnal-63398011f942cb53bb9f02587dc62d6a6fe91b5d.tar.gz cygnal-63398011f942cb53bb9f02587dc62d6a6fe91b5d.tar.bz2 cygnal-63398011f942cb53bb9f02587dc62d6a6fe91b5d.zip |
* autoload.cc (wsock_init): Properly define WSAStartup function pointer to
avoid stack damage.
Diffstat (limited to 'winsup/cygwin/autoload.cc')
-rw-r--r-- | winsup/cygwin/autoload.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index 2e495ad6a..96de1439b 100644 --- a/winsup/cygwin/autoload.cc +++ b/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) { |