[*] bug: fix process time counters under win32

This commit is contained in:
Reece Wilson 2023-04-29 05:26:53 +01:00
parent 0175809d0a
commit c787d85485

View File

@ -305,7 +305,7 @@ namespace Aurora::Time
#if defined(AURORA_IS_MODERNNT_DERIVED)
FILETIME creation, exit, kernel, user;
if (::GetProcessTimes(GetCurrentThread(), &creation, &exit, &kernel, &user))
if (::GetProcessTimes(GetCurrentProcess(), &creation, &exit, &kernel, &user))
{
ULARGE_INTEGER ullUser;
{
@ -335,7 +335,7 @@ namespace Aurora::Time
#if defined(AURORA_IS_MODERNNT_DERIVED)
FILETIME creation, exit, kernel, user;
if (::GetProcessTimes(GetCurrentThread(), &creation, &exit, &kernel, &user))
if (::GetProcessTimes(GetCurrentProcess(), &creation, &exit, &kernel, &user))
{
ULARGE_INTEGER ullUser;
{