Skip to content

Commit

Permalink
Fix missing non-optional parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Feb 28, 2024
1 parent b27fc0a commit 7944462
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gum/backend-windows/gumprocess-windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,9 @@ gum_thead_get_user_time (void)
static GetThreadTimesFunc get_thread_times = NULL;

HMODULE mod;
FILETIME creationTime;
FILETIME exitTime;
FILETIME kernelTime;
FILETIME userTime;
guint64 result;

Expand All @@ -665,8 +668,11 @@ gum_thead_get_user_time (void)
if (get_thread_times == NULL)
return 0;

if (!get_thread_times (GetCurrentThread (), NULL, NULL, NULL, &userTime))
if (!get_thread_times (GetCurrentThread (), &creationTime, &exitTime,
&kernelTime, &userTime))
{
return 0;
}

result = (((guint64) userTime.dwHighDateTime) << 32) + userTime.dwLowDateTime;

Expand Down

0 comments on commit 7944462

Please sign in to comment.