Commit 349460f2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

I hate Winsuck^H^H^Hock

parent 0babda75
......@@ -327,7 +327,8 @@ static void QueueMsg( vlc_object_t *p_this, int i_queue, int i_type,
strncpy( errbuf, net_strerror( sockerr ), 1001 );
WSASetLastError( sockerr );
}
else
if ((sockerr == 0)
|| (strcmp ("Unknown network stack error", errbuf) == 0))
strncpy( errbuf, strerror( errno ), 1001 );
#endif
errbuf[1000] = 0;
......
......@@ -147,6 +147,7 @@ const char *net_strerror( int value )
if( e->code == value )
return e->msg;
/* Remember to update src/misc/messages.c if you change this one */
return "Unknown network stack error";
}
#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