mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 09:00:17 +02:00
Merge pull request #5697 from lioncash/thread
x32/Thread: Move writability check around in waitpid
This commit is contained in:
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();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user