about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-01-21 12:22:47 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-01-21 12:22:47 +0100
commit01bf7aa774bdc5a11018670860f0698bd5409dd8 (patch)
tree08053f742bd4f12dc0b0c683d078632e016d1554 /src
parent427ca732fe6b1d17ea9a75d69594af13f8185c90 (diff)
downloadbox64-01bf7aa774bdc5a11018670860f0698bd5409dd8.tar.gz
box64-01bf7aa774bdc5a11018670860f0698bd5409dd8.zip
Removed a useless test in getProtection utility function
Diffstat (limited to 'src')
-rw-r--r--src/custommem.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/custommem.c b/src/custommem.c
index 99b428c0..c1eca7e0 100644
--- a/src/custommem.c
+++ b/src/custommem.c
@@ -1225,8 +1225,6 @@ void freeProtection(uintptr_t addr, size_t size)
 
 uint32_t getProtection(uintptr_t addr)
 {
-    if(addr>=(1LL<<48))
-        return 0;
     mutex_lock(&mutex_prot);
     uint32_t ret = rb_get(memprot, addr);
     mutex_unlock(&mutex_prot);