summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-01-20 16:37:09 +0000
committermidipix <writeonce@midipix.org>2018-01-20 13:49:00 -0500
commit36031705657bef0792126390429c8fd1803dbbc4 (patch)
treee69edebbe285a7fa82e3f4bda7e266fa6ea52f9e
parent2db6fe4f1847b6461991756e3cc5bc7b31d41282 (diff)
downloadntapi-36031705657bef0792126390429c8fd1803dbbc4.tar.bz2
ntapi-36031705657bef0792126390429c8fd1803dbbc4.tar.xz
__ntapi_tt_create_thread(): SP register: remove redundant pointer allocation.
-rw-r--r--src/thread/ntapi_tt_create_thread.c3
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);
}