mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 01:24:41 -06:00
Clean return value if win32 call fails.
This commit is contained in:
parent
3cff628a62
commit
02b18fb081
@ -46,6 +46,13 @@ void QueryCoreTimes(uint32 count, ProcessorTime out[])
|
||||
out[i].user = sppi[i].UserTime.QuadPart;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (auto i = 0; i < count; ++i)
|
||||
{
|
||||
out[i] = { };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Reference in New Issue
Block a user