aboutsummaryrefslogtreecommitdiffstats
path: root/src/system/Clock.cxx
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-11-29 15:21:31 +0600
committerDenis Krjuchkov <denis@crazydev.net>2013-11-29 15:21:31 +0600
commit65b24ce5577514b093b0cefbf51ce61e85368030 (patch)
treea737df8ab3d404df2b80d2230e934bb94e128fb6 /src/system/Clock.cxx
parentcfdd5edc499601430bb93a8b593fab0edec34f08 (diff)
downloadmpd-65b24ce5577514b093b0cefbf51ce61e85368030.tar.gz
mpd-65b24ce5577514b093b0cefbf51ce61e85368030.tar.xz
mpd-65b24ce5577514b093b0cefbf51ce61e85368030.zip
Clock.cxx: provide all arguments for GetProcessTimes
All parameters seem mandatory, otherwise this call makes MPD crash.
Diffstat (limited to 'src/system/Clock.cxx')
-rw-r--r--src/system/Clock.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/system/Clock.cxx b/src/system/Clock.cxx
index 8fbd76d22..4d89b9b89 100644
--- a/src/system/Clock.cxx
+++ b/src/system/Clock.cxx
@@ -135,9 +135,9 @@ DeltaFileTimeS(FILETIME a, FILETIME b)
unsigned
GetProcessUptimeS()
{
- FILETIME creation_time, now;
+ FILETIME creation_time, exit_time, kernel_time, user_time, now;
GetProcessTimes(GetCurrentProcess(), &creation_time,
- nullptr, nullptr, nullptr);
+ &exit_time, &kernel_time, &user_time);
GetSystemTimeAsFileTime(&now);
return DeltaFileTimeS(now, creation_time);