Re: [PATCH v21 0/2] MR2100: ntdll: Do not send data to port 0.
Zebediah Figura (@zfigura) commented about dlls/ntdll/unix/socket.c:
{ ULONG_PTR information;
- status = try_send( fd, async ); + if (protocol == WS_IPPROTO_UDP && async->addr && sockaddr_is_port0(async->addr, async->addr_len)) + { + /* Spellforce 3 is known to send to port 0. + * This causes 'sendmsg' to throw a EINVAL error, on Windows this does nothing but consume the data. + */ + ssize_t i; + for(i = async->iov_cursor; i < async->count; i++) + { + async->sent_len += async->iov[i].iov_len; + }
```suggestion:-3+0 for (i = async->iov_cursor; i < async->count; i++) async->sent_len += async->iov[i].iov_len; ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2100#note_24096
participants (1)
-
Zebediah Figura (@zfigura)