From 2e9e748f622b312a0bd198b7691a911f9606b30c Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Thu, 19 Dec 2024 14:54:42 +0300 Subject: [PATCH] Fix system time query implementation. --- UnleashedRecomp/kernel/imports.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnleashedRecomp/kernel/imports.cpp b/UnleashedRecomp/kernel/imports.cpp index 552bdc3d..d350b318 100644 --- a/UnleashedRecomp/kernel/imports.cpp +++ b/UnleashedRecomp/kernel/imports.cpp @@ -1356,7 +1356,7 @@ void KeQuerySystemTime(be* time) int64_t currentTime100ns = std::chrono::duration_cast>>(timeSinceEpoch).count(); currentTime100ns += FILETIME_EPOCH_DIFFERENCE; - *time = ((currentTime100ns & 0xFFFFFFFF) << 32) | (currentTime100ns & 0xFFFFFFFF); + *time = currentTime100ns; } void RtlTimeToTimeFields()