ws2_32: make gethostbyname fail if WSAStartup was not called before

Alexandre Julliard julliard at winehq.org
Mon Feb 21 10:16:09 CST 2011


Alexandre Goujon <ale.goujon at gmail.com> writes:

> @@ -1104,6 +1106,7 @@ int WINAPI WSAStartup(WORD wVersionRequested, LPWSADATA lpWSAData)
>      /* don't do anything with lpWSAData->lpVendorInfo */
>      /* (some apps don't allocate the space for this field) */
>  
> +    WSAStartup_called = TRUE;
>      TRACE("succeeded\n");
>      return 0;

There's already a counter for tracking WSAStartup calls.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list