Use win_error for WSAGetLastError

This commit is contained in:
Megamouse 2023-03-05 02:55:13 +01:00
parent 0d34b97948
commit 425610b98a

View File

@ -210,7 +210,7 @@ void windows_poll(pollfd* fds, unsigned long nfds, int timeout, bool* connecting
if (r == SOCKET_ERROR)
{
sys_net.error("WSAPoll failed: %u", WSAGetLastError());
sys_net.error("WSAPoll failed: %s", fmt::win_error{static_cast<unsigned long>(WSAGetLastError()), nullptr});
return;
}