mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 09:00:17 +02:00
Timer: Fix typo in timer_gettime
This should be passed by reference rather than by value.
This commit is contained in:
1 parent
77467eaf0c
commit
4069a9f7d5
1 file changed
+1
-1
@@ -48,7 +48,7 @@ void RegisterTimer(FEX::HLE::SyscallHandler* Handler) {
|
||||
REGISTER_SYSCALL_IMPL_X32(
|
||||
timer_gettime, [](FEXCore::Core::CpuStateFrame* Frame, kernel_timer_t timerid, FEX::HLE::x32::old_itimerspec32* curr_value) -> uint64_t {
|
||||
itimerspec curr_value_host {};
|
||||
uint64_t Result = ::syscall(SYSCALL_DEF(timer_gettime), timerid, curr_value_host);
|
||||
uint64_t Result = ::syscall(SYSCALL_DEF(timer_gettime), timerid, &curr_value_host);
|
||||
FaultSafeUserMemAccess::VerifyIsWritable(curr_value, sizeof(*curr_value));
|
||||
*curr_value = curr_value_host;
|
||||
SYSCALL_ERRNO();
|
||||
|
||||
Reference in new issue
Block a user