Skip to content
Snippets Groups Projects
Commit e7761bb1 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix Win32 harder

parent d2eda12d
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2719 failed
...@@ -844,8 +844,9 @@ uint64_t xp_timer64(void) ...@@ -844,8 +844,9 @@ uint64_t xp_timer64(void)
#elif defined(_WIN32) #elif defined(_WIN32)
LARGE_INTEGER freq; LARGE_INTEGER freq;
LARGE_INTEGER tick; LARGE_INTEGER tick;
if(QueryPerformanceFrequency(&freq) && QueryPerformanceCounter(&tick)) { if(QueryPerformanceFrequency(&freq) && QueryPerformanceCounter(&tick)) {
static BOOL intable = (freq % 1000) == 0; static BOOL intable = (freq.QuadPart % 1000) == 0;
if (intable) if (intable)
ret = tick.QuadPart / (freq.QuadPart / 1000); ret = tick.QuadPart / (freq.QuadPart / 1000);
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment