mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 09:00:17 +02:00
x32/Time: Correct sizeof expression in utimensat
Ensures we check the proper type.
This commit is contained in:
1 parent
5f2d19c7aa
commit
3395bedc2b
1 file changed
+1
-1
@@ -193,7 +193,7 @@ void RegisterTime(FEX::HLE::SyscallHandler* Handler) {
|
||||
utimensat, [](FEXCore::Core::CpuStateFrame* Frame, int dirfd, const char* pathname, const compat_ptr<timespec32> times, int flags) -> uint64_t {
|
||||
uint64_t Result = 0;
|
||||
if (times) {
|
||||
FaultSafeUserMemAccess::VerifyIsReadable(times, sizeof(timeval32) * 2);
|
||||
FaultSafeUserMemAccess::VerifyIsReadable(times, sizeof(timespec32) * 2);
|
||||
timespec times64[2] {};
|
||||
times64[0] = times[0];
|
||||
times64[1] = times[1];
|
||||
|
||||
Reference in new issue
Block a user