fix divide by zero (#3759)

This commit is contained in:
oltolm 2025-10-31 14:36:27 +01:00 committed by GitHub
parent eda6be746f
commit 493cda07c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -163,7 +163,7 @@ s32 PS4_SYSV_ABI posix_clock_gettime(u32 clock_id, OrbisKernelTimespec* ts) {
case ORBIS_CLOCK_MONOTONIC_FAST: {
static LARGE_INTEGER pf = [] {
LARGE_INTEGER res{};
QueryPerformanceFrequency(&pf);
QueryPerformanceFrequency(&res);
return res;
}();