mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-09 13:19:00 +00:00
fix divide by zero (#3759)
This commit is contained in:
@@ -163,7 +163,7 @@ s32 PS4_SYSV_ABI posix_clock_gettime(u32 clock_id, OrbisKernelTimespec* ts) {
|
|||||||
case ORBIS_CLOCK_MONOTONIC_FAST: {
|
case ORBIS_CLOCK_MONOTONIC_FAST: {
|
||||||
static LARGE_INTEGER pf = [] {
|
static LARGE_INTEGER pf = [] {
|
||||||
LARGE_INTEGER res{};
|
LARGE_INTEGER res{};
|
||||||
QueryPerformanceFrequency(&pf);
|
QueryPerformanceFrequency(&res);
|
||||||
return res;
|
return res;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user