about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-09-10 15:09:38 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-09-10 15:09:45 +0200
commit0443edc03481221ab2ebe100319ab23dc193150f (patch)
tree094fad5ae4627d74d0b330d2116d33af2c47c67b /src
parenta7f8dbac565694ecbb8962bc4cc1e6b40ca67c48 (diff)
downloadbox64-0443edc03481221ab2ebe100319ab23dc193150f.tar.gz
box64-0443edc03481221ab2ebe100319ab23dc193150f.zip
[BOX32] Fixed wrapping 32bits version of __cxa_finalize
Diffstat (limited to 'src')
-rwxr-xr-xsrc/wrapped32/wrappedlibc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wrapped32/wrappedlibc.c b/src/wrapped32/wrappedlibc.c
index f3153674..e5be378c 100755
--- a/src/wrapped32/wrappedlibc.c
+++ b/src/wrapped32/wrappedlibc.c
@@ -493,7 +493,7 @@ void EXPORT my32___cxa_finalize(x64emu_t* emu, void* p)
         CallAllCleanup(emu);
         return;
     }
-        CallCleanup(emu, p);
+    CallCleanup(emu, FindElfAddress(my_context, (uintptr_t)p));
 }
 int EXPORT my32_atexit(x64emu_t* emu, void *p)
 {