Skip to content

Commit

Permalink
Fix call to gum_memory_get_protection()
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr authored and mrmacete committed Jan 30, 2024
1 parent 395c364 commit 86d5307
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions gum/backend-windows/gummemory-windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,7 @@ gboolean
gum_memory_query_protection (gconstpointer address,
GumPageProtection * prot)
{
gsize size;

if (!gum_memory_get_protection (address, 1, &size, prot))
return FALSE;

return size >= 1;
return gum_memory_get_protection (address, 1, prot);
}

guint8 *
Expand Down

0 comments on commit 86d5307

Please sign in to comment.