mirror of
https://github.com/citra-mirror/citra.git
synced 2024-08-21 19:03:23 +02: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) {
|
if (ret >= 0 && src_addr_len > 0) {
|
||||||
ctr_src_addr = CTRSockAddr::FromPlatform(src_addr);
|
ctr_src_addr = CTRSockAddr::FromPlatform(src_addr);
|
||||||
std::memcpy(addr_buff.data(), &ctr_src_addr, sizeof(ctr_src_addr));
|
std::memcpy(addr_buff.data(), &ctr_src_addr, sizeof(ctr_src_addr));
|
||||||
|
}else {
|
||||||
|
addr_buff.resize(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 total_received = ret;
|
s32 total_received = ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user