Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Feb 26, 2024
1 parent 678fa46 commit 3589446
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions gum/backend-linux/gumprocess-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
# include <sys/user.h>
#endif
#ifdef HAVE_LINUX
#include <sys/time.h>
#include <sys/resource.h>
#endif

Expand Down
4 changes: 2 additions & 2 deletions gum/backend-windows/gumprocess-windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ gum_thread_resume (GumThreadId thread_id,
guint64
gum_thead_get_user_time (void)
{
static gboolean initialized = false;
static gboolean initialized = FALSE;
static GetThreadTimesFunc get_thread_times = NULL;

HMODULE mod;
Expand All @@ -668,7 +668,7 @@ gum_thead_get_user_time (void)
if (!get_thread_times (GetCurrentThread (), NULL, NULL, NULL, &userTime))
return 0;

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

/* Timings on Windows are to 100-nanosecond granularity. Convert to u-secs */
return result / 10;
Expand Down

0 comments on commit 3589446

Please sign in to comment.