diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2025-07-10 18:29:58 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2025-07-10 18:29:58 +0200 |
| commit | 3ac62c64d82c292787ba87b37a8bf580525365f3 (patch) | |
| tree | dfeeac49346a340a601aa967b377242ea5edb45c | |
| parent | 5596b9ae3fd0f9518ebd66da289ee137f5a4c26e (diff) | |
| download | box64-3ac62c64d82c292787ba87b37a8bf580525365f3.tar.gz box64-3ac62c64d82c292787ba87b37a8bf580525365f3.zip | |
Default x64emu_t structure for thread now point to a valid IP, just in case
| -rw-r--r-- | src/libtools/threads.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtools/threads.c b/src/libtools/threads.c index 34718718..3e344e8c 100644 --- a/src/libtools/threads.c +++ b/src/libtools/threads.c @@ -203,7 +203,7 @@ x64emu_t* thread_get_emu() stack = InternalMmap(NULL, stacksize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_GROWSDOWN, -1, 0); if(stack!=MAP_FAILED) setProtection((uintptr_t)stack, stacksize, PROT_READ|PROT_WRITE); - x64emu_t *emu = NewX64Emu(my_context, 0, (uintptr_t)stack, stacksize, 1); + x64emu_t *emu = NewX64Emu(my_context, my_context->exit_bridge, (uintptr_t)stack, stacksize, 1); SetupX64Emu(emu, NULL); thread_set_emu(emu); return emu; |