diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-03-07 13:43:08 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-03-07 13:43:08 +0100 |
| commit | 57e29ac3b86fa70d1a8209ae5be48b1cbcce215e (patch) | |
| tree | dc1aa6f502a53649db0c46c08c24fe0f134c86c3 /src/libtools | |
| parent | e937df638c045ea7378e8eed8d19d9d81205e358 (diff) | |
| download | box64-57e29ac3b86fa70d1a8209ae5be48b1cbcce215e.tar.gz box64-57e29ac3b86fa70d1a8209ae5be48b1cbcce215e.zip | |
Small adjustment to cancel thread handling
Diffstat (limited to 'src/libtools')
| -rwxr-xr-x | src/libtools/threads.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libtools/threads.c b/src/libtools/threads.c index 90fc8f96..d35b0d4f 100755 --- a/src/libtools/threads.c +++ b/src/libtools/threads.c @@ -127,20 +127,20 @@ static void FreeCancelThread(box64context_t* context) static __pthread_unwind_buf_t* AddCancelThread(x64_unwind_buff_t* buff) { __pthread_unwind_buf_t* r = (__pthread_unwind_buf_t*)calloc(1, sizeof(__pthread_unwind_buf_t)); - buff->__pad[1] = r; + buff->__pad[3] = r; return r; } static __pthread_unwind_buf_t* GetCancelThread(x64_unwind_buff_t* buff) { - return (__pthread_unwind_buf_t*)buff->__pad[1]; + return (__pthread_unwind_buf_t*)buff->__pad[3]; } static void DelCancelThread(x64_unwind_buff_t* buff) { - __pthread_unwind_buf_t* r = (__pthread_unwind_buf_t*)buff->__pad[1]; + __pthread_unwind_buf_t* r = (__pthread_unwind_buf_t*)buff->__pad[3]; free(r); - buff->__pad[1] = NULL; + buff->__pad[3] = NULL; } typedef struct emuthread_s { |