mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-15 09:00:43 +02:00
Merge pull request #1113 from Sonicadvance1/fix_argument_epoll_ctl
Wrap 32-bit epoll_ctl argument in compat_ptr
This commit is contained in:
commit
76a054e50a
1 file changed
+1
-1
@@ -36,7 +36,7 @@ namespace FEX::HLE::x32 {
|
||||
SYSCALL_ERRNO();
|
||||
});
|
||||
|
||||
REGISTER_SYSCALL_IMPL_X32(epoll_ctl, [](FEXCore::Core::CpuStateFrame *Frame, int epfd, int op, int fd, epoll_event_x86 *event) -> uint64_t {
|
||||
REGISTER_SYSCALL_IMPL_X32(epoll_ctl, [](FEXCore::Core::CpuStateFrame *Frame, int epfd, int op, int fd, compat_ptr<epoll_event_x86> event) -> uint64_t {
|
||||
struct epoll_event Event = *event;
|
||||
uint64_t Result = ::syscall(SYS_epoll_ctl, epfd, op, fd, &Event);
|
||||
if (Result != -1) {
|
||||
|
||||
Reference in new issue
Block a user