diff --git a/rpcs3/Emu/Cell/lv2/sys_net/lv2_socket_native.cpp b/rpcs3/Emu/Cell/lv2/sys_net/lv2_socket_native.cpp index 5846a2302e..839406f34e 100644 --- a/rpcs3/Emu/Cell/lv2/sys_net/lv2_socket_native.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_net/lv2_socket_native.cpp @@ -869,11 +869,11 @@ std::optional lv2_socket_native::sendto(s32 flags, const std::vector& b { const s32 ret_analyzer = dnshook.analyze_dns_packet(lv2_id, reinterpret_cast(buf.data()), buf.size()); - // If we're not connected just never send the packet and pretend we did + // If we're offline return ENETDOWN for dns requests auto& nph = g_fxo->get>(); if (!nph.get_net_status()) { - return {::narrow(buf.size())}; + return -SYS_NET_ENETDOWN; } // Check if the packet is intercepted