Clean return value if win32 call fails.

This commit is contained in:
Tom Lally 2022-09-02 20:59:44 +01:00
parent 3cff628a62
commit 02b18fb081

View file

@ -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