Clock.cxx: provide all arguments for GetProcessTimes
All parameters seem mandatory, otherwise this call makes MPD crash.
This commit is contained in:
parent
cfdd5edc49
commit
65b24ce557
@ -135,9 +135,9 @@ DeltaFileTimeS(FILETIME a, FILETIME b)
|
|||||||
unsigned
|
unsigned
|
||||||
GetProcessUptimeS()
|
GetProcessUptimeS()
|
||||||
{
|
{
|
||||||
FILETIME creation_time, now;
|
FILETIME creation_time, exit_time, kernel_time, user_time, now;
|
||||||
GetProcessTimes(GetCurrentProcess(), &creation_time,
|
GetProcessTimes(GetCurrentProcess(), &creation_time,
|
||||||
nullptr, nullptr, nullptr);
|
&exit_time, &kernel_time, &user_time);
|
||||||
GetSystemTimeAsFileTime(&now);
|
GetSystemTimeAsFileTime(&now);
|
||||||
|
|
||||||
return DeltaFileTimeS(now, creation_time);
|
return DeltaFileTimeS(now, creation_time);
|
||||||
|
Loading…
Reference in New Issue
Block a user