mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-03 13:31:18 +12:00
Clean return value if win32 call fails.
This commit is contained in:
parent
3cff628a62
commit
02b18fb081
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue