about summary refs log tree commit diff stats
path: root/src/custommem.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-03-26 13:20:34 +0100
committerptitSeb <sebastien.chev@gmail.com>2022-03-26 13:20:34 +0100
commit1eaa7159a6416640bccf3cc3541adedcde2649b0 (patch)
treea45af1710cc233e1deeef13374af8ed7b59d79c1 /src/custommem.c
parent4015c26e68a5ce812673a3d434f8d98fa21755c1 (diff)
downloadbox64-1eaa7159a6416640bccf3cc3541adedcde2649b0.tar.gz
box64-1eaa7159a6416640bccf3cc3541adedcde2649b0.zip
More work around steam and proton/SteamPlay (working, but need also latest box86)
Diffstat (limited to 'src/custommem.c')
-rw-r--r--src/custommem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/custommem.c b/src/custommem.c
index c11e1557..b2b5d6a5 100644
--- a/src/custommem.c
+++ b/src/custommem.c
@@ -892,7 +892,7 @@ void addMapMem(uintptr_t begin, uintptr_t end)
         newm->end = end;
         m->next = newm;
     }
-    while(newm->next && (newm->next->begin-1)<=newm->end) {
+    while(newm && newm->next && (newm->next->begin-1)<=newm->end) {
         // fuse with next
         if(newm->next->end>newm->end)
             newm->end = newm->next->end;