5 Feb
2025
5 Feb
'25
10:44 a.m.
Rémi Bernon (@rbernon) commented about dlls/winewayland.drv/wayland_data_device.c:
+ + end_time = NtGetTickCount() + receive_timeout; + do + { + if (poll_until(fd, POLLIN | POLLHUP, end_time) <= 0) goto out; + + nread = read(fd, buffer + total, buffer_size - total); + if (nread == -1 && errno != EINTR) + { + TRACE("failed to read from fd (errno: %d)\n", errno); + total = 0; + goto out; + } + else if (nread > 0) + { + total += nread; Same question here.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/7236#note_93699