Commit fc92a656 authored by Rafaël Carré's avatar Rafaël Carré

Correctly use WSAStringToAddress()

Fix by upb at preteam org
parent ec401825
......@@ -571,7 +571,7 @@ int inet_pton(int af, const char *src, void *dst)
char *workaround_for_ill_designed_api = strdup( src );
#endif
if( !WSAStringToAddress( workaround_for_ill_designed_api, af, NULL,
if( WSAStringToAddress( workaround_for_ill_designed_api, af, NULL,
(LPSOCKADDR)&addr, &len ) )
{
free( workaround_for_ill_designed_api );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment