diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/thread/ntapi_tt_create_thread.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/thread/ntapi_tt_create_thread.c b/src/thread/ntapi_tt_create_thread.c index c356370..c0ab11a 100644 --- a/src/thread/ntapi_tt_create_thread.c +++ b/src/thread/ntapi_tt_create_thread.c @@ -199,8 +199,7 @@ int32_t __stdcall __ntapi_tt_create_thread(nt_thread_params * params) __INIT_CONTEXT(context); context.INSTRUCTION_POINTER_REGISTER = (uintptr_t)params->start; - context.STACK_POINTER_REGISTER = (uintptr_t)(stack.expandable_stack_base) - - sizeof(intptr_t); + context.STACK_POINTER_REGISTER = (uintptr_t)(stack.expandable_stack_base); } |