From fc8c19989569d55cc7560c86537c7768d1b5a7bb Mon Sep 17 00:00:00 2001 From: Nguyen Dac Nam Date: Tue, 21 Aug 2018 12:59:02 +0700 Subject: [PATCH] fix soc service - RecvFrom crash on Citra but not on 3DS --- src/core/hle/service/soc_u.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/hle/service/soc_u.cpp b/src/core/hle/service/soc_u.cpp index cfb1af110..1537c385c 100644 --- a/src/core/hle/service/soc_u.cpp +++ b/src/core/hle/service/soc_u.cpp @@ -587,6 +587,8 @@ void SOC_U::RecvFrom(Kernel::HLERequestContext& ctx) { if (ret >= 0 && src_addr_len > 0) { ctr_src_addr = CTRSockAddr::FromPlatform(src_addr); std::memcpy(addr_buff.data(), &ctr_src_addr, sizeof(ctr_src_addr)); + }else { + addr_buff.resize(0); } s32 total_received = ret;