Skip to content

Commit

Permalink
WIN32: WSAGetLastError() returns WSAEINVAL
Browse files Browse the repository at this point in the history
WSAGetLastError() returns WSAEINVAL, not EINVAL.
  • Loading branch information
carlo-bramini authored and JohannesLorenz committed Dec 2, 2023
1 parent 96eb2f3 commit 639463a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ lo_server lo_server_new_with_proto_internal(const char *group,
0)) {
err = geterror();
#ifdef WIN32
if (err == EINVAL || err == WSAEADDRINUSE) {
if (err == WSAEINVAL || err == WSAEADDRINUSE) {
#else
if (err == EINVAL || err == EADDRINUSE) {
#endif
Expand Down

0 comments on commit 639463a

Please sign in to comment.