mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-27 17:42:40 -06:00
fix soc service - RecvFrom crash on Citra but not on 3DS
This commit is contained in:
parent
7279335fc0
commit
fc8c199895
1 changed files with 2 additions and 0 deletions
|
@ -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