Clock.cxx: provide all arguments for GetProcessTimes

All parameters seem mandatory, otherwise this call makes MPD crash.
This commit is contained in:
Denis Krjuchkov 2013-11-29 15:21:31 +06:00
parent cfdd5edc49
commit 65b24ce557

View File

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