Commit 6f5fb734 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Print Winsock error number

parent 5077a231
...@@ -622,7 +622,7 @@ int __net_Read( vlc_object_t *p_this, int fd, v_socket_t *p_vs, ...@@ -622,7 +622,7 @@ int __net_Read( vlc_object_t *p_this, int fd, v_socket_t *p_vs,
if( i_ret < 0 ) if( i_ret < 0 )
{ {
#if defined(WIN32) || defined(UNDER_CE) #if defined(WIN32) || defined(UNDER_CE)
msg_Err( p_this, "network select error" ); msg_Err( p_this, "network select error (%d)", WSAGetLastError() );
#else #else
msg_Err( p_this, "network select error (%s)", strerror(errno) ); msg_Err( p_this, "network select error (%s)", strerror(errno) );
#endif #endif
...@@ -706,7 +706,7 @@ int __net_ReadNonBlock( vlc_object_t *p_this, int fd, v_socket_t *p_vs, ...@@ -706,7 +706,7 @@ int __net_ReadNonBlock( vlc_object_t *p_this, int fd, v_socket_t *p_vs,
else if( i_ret < 0 ) else if( i_ret < 0 )
{ {
#if defined(WIN32) || defined(UNDER_CE) #if defined(WIN32) || defined(UNDER_CE)
msg_Err( p_this, "network select error" ); msg_Err( p_this, "network select error (%d)", WSAGetLastError() );
#else #else
msg_Err( p_this, "network select error (%s)", strerror(errno) ); msg_Err( p_this, "network select error (%s)", strerror(errno) );
#endif #endif
...@@ -870,7 +870,7 @@ int __net_Write( vlc_object_t *p_this, int fd, v_socket_t *p_vs, ...@@ -870,7 +870,7 @@ int __net_Write( vlc_object_t *p_this, int fd, v_socket_t *p_vs,
if( i_ret < 0 ) if( i_ret < 0 )
{ {
#if defined(WIN32) || defined(UNDER_CE) #if defined(WIN32) || defined(UNDER_CE)
msg_Err( p_this, "network select error" ); msg_Err( p_this, "network select error (%d)", WSAGetLastError() );
#else #else
msg_Err( p_this, "network select error (%s)", strerror(errno) ); msg_Err( p_this, "network select error (%s)", strerror(errno) );
#endif #endif
......
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