mirror of
https://github.com/citra-emu/citra-nightly.git
synced 2024-12-25 09:25:32 +00:00
fix soc service - RecvFrom crash on Citra but not on 3DS
This commit is contained in:
parent
7279335fc0
commit
fc8c199895
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue