[vlc-devel] commit: Correctly use WSAStringToAddress() ( Rafaël Carré )

git version control git at videolan.org
Tue Mar 25 01:20:11 CET 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue Mar 25 01:17:27 2008 +0100| [fc92a6567e68eb7a22f4107d65d3bd2cced7266e]

Correctly use WSAStringToAddress()

Fix by upb at preteam org

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fc92a6567e68eb7a22f4107d65d3bd2cced7266e
---

 src/network/io.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/network/io.c b/src/network/io.c
index c38831c..16094f4 100644
--- a/src/network/io.c
+++ b/src/network/io.c
@@ -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 );




More information about the vlc-devel mailing list