Merge pull request #5697 from lioncash/thread

x32/Thread: Move writability check around in waitpid
This commit is contained in:
Ryan Houdek authored and GitHub committed 2026-07-10 10:34:56 -07:00
commit 0bdf15977f
1 file changed
+1 -1
@@ -138,8 +138,8 @@ void RegisterThread(FEX::HLE::SyscallHandler* Handler) {
}));
REGISTER_SYSCALL_IMPL_X32(waitpid, [](FEXCore::Core::CpuStateFrame* Frame, pid_t pid, int32_t* status, int32_t options) -> uint64_t {
uint64_t Result = ::waitpid(pid, status, options);
FaultSafeUserMemAccess::VerifyIsWritableOrNull(status, sizeof(*status));
uint64_t Result = ::waitpid(pid, status, options);
SYSCALL_ERRNO();
});