From 425610b98ab3ad43712b55a626e57dab46352e31 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sun, 5 Mar 2023 02:55:13 +0100 Subject: [PATCH] Use win_error for WSAGetLastError --- rpcs3/Emu/Cell/lv2/sys_net/sys_net_helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_net/sys_net_helpers.cpp b/rpcs3/Emu/Cell/lv2/sys_net/sys_net_helpers.cpp index ca5e84f33e..637a842fe2 100644 --- a/rpcs3/Emu/Cell/lv2/sys_net/sys_net_helpers.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_net/sys_net_helpers.cpp @@ -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(WSAGetLastError()), nullptr}); return; }