Merge pull request #2441 from ergo720/time_fix

This commit is contained in:
PatrickvL 2023-12-30 09:53:52 +01:00 committed by GitHub
commit 8cc9c73f58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,6 +42,7 @@ namespace NtDll
#include "core\kernel\init\CxbxKrnl.h" // For CxbxrAbort()
#include "core\kernel\support\Emu.h" // For EmuLog(LOG_LEVEL::WARNING, )
#include "EmuKrnlKi.h"
#include <assert.h>
#ifdef _WIN32
@ -1661,7 +1662,10 @@ XBSYSAPI EXPORTNUM(304) xbox::boolean_xt NTAPI xbox::RtlTimeFieldsToTime
TimeFields->Hour) * MINSPERHOUR +
TimeFields->Minute) * SECSPERMIN +
TimeFields->Second) * 1000 +
TimeFields->Millisecond) * TICKSPERMSEC;
TimeFields->Millisecond);
// This function must return a time expressed in 100ns units (the Windows time interval), so it needs a final multiplication here
*Time = RtlExtendedIntegerMultiply(*Time, CLOCK_TIME_INCREMENT);
RETURN(TRUE);
}