Merge pull request #21271 from Kethen/postoffice_fixes

Fix FlatOut Head On in aemu_postoffice relay mode
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2026-02-17 22:37:38 +01:00
commit 2372e8c136
1 file changed
+2
+2
View File
@@ -573,6 +573,7 @@ int DoBlockingPdpRecv(AdhocSocketRequest& req, s64& result) {
if (next_size > *req.length) {
// next is larger than current buffer
result = SCE_NET_ADHOC_ERROR_NOT_ENOUGH_SPACE;
*req.length = next_size;
return 0;
}
ret = pdp_recv_postoffice(req.id - 1, req.remoteMAC, req.remotePort, req.buffer, req.length);
@@ -2301,6 +2302,7 @@ int sceNetAdhocPdpRecv(int id, void *addr, void * port, void *buf, void *dataLen
}
if (next_size > *len) {
// next is larger than current buffer
*len = next_size;
return SCE_NET_ADHOC_ERROR_NOT_ENOUGH_SPACE;
}
received = pdp_recv_postoffice(id - 1, saddr, sport, buf, len);