From 63398011f942cb53bb9f02587dc62d6a6fe91b5d Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 5 Feb 2011 19:38:21 +0000 Subject: * autoload.cc (wsock_init): Properly define WSAStartup function pointer to avoid stack damage. --- winsup/cygwin/autoload.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/autoload.cc') 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) { -- cgit v1.2.3