diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-04-05 17:25:48 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-04-05 17:25:48 +0200 |
| commit | 8a6a1312f290943bf3f34f01447f284b4a3133a0 (patch) | |
| tree | e09ac5d919e242c36db2c58d4950a73cc48dc38a /src | |
| parent | a9d633ab2d7b7b8a8101d5a0e693d008804614f5 (diff) | |
| download | box64-8a6a1312f290943bf3f34f01447f284b4a3133a0.tar.gz box64-8a6a1312f290943bf3f34f01447f284b4a3133a0.zip | |
One more change to __libc_start_main to end emulation when done
Diffstat (limited to 'src')
| -rwxr-xr-x | src/emu/x64run_private.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emu/x64run_private.c b/src/emu/x64run_private.c index 84cdea47..51c9f0d7 100755 --- a/src/emu/x64run_private.c +++ b/src/emu/x64run_private.c @@ -57,6 +57,7 @@ int32_t EXPORT my___libc_start_main(x64emu_t* emu, int *(main) (int, char * *, c #endif SetRSP(emu, GetRBP(emu)); // restore RSP SetRBP(emu, Pop64(emu)); // restore RBP + emu->quit = 1; // finished! return 0; } |