diff options
author | Denis Krjuchkov <denis@crazydev.net> | 2013-11-29 15:21:31 +0600 |
---|---|---|
committer | Denis Krjuchkov <denis@crazydev.net> | 2013-11-29 15:21:31 +0600 |
commit | 65b24ce5577514b093b0cefbf51ce61e85368030 (patch) | |
tree | a737df8ab3d404df2b80d2230e934bb94e128fb6 /src | |
parent | cfdd5edc499601430bb93a8b593fab0edec34f08 (diff) | |
download | mpd-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')
-rw-r--r-- | src/system/Clock.cxx | 4 |
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); |