From 65b24ce5577514b093b0cefbf51ce61e85368030 Mon Sep 17 00:00:00 2001 From: Denis Krjuchkov Date: Fri, 29 Nov 2013 15:21:31 +0600 Subject: Clock.cxx: provide all arguments for GetProcessTimes All parameters seem mandatory, otherwise this call makes MPD crash. --- src/system/Clock.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3