summaryrefslogtreecommitdiffhomepage
path: root/src/thread
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-27 17:40:54 -0400
committermidipix <writeonce@midipix.org>2016-05-27 17:40:54 -0400
commit9f88a284919df8327afd293aee79a86ae88b6f5e (patch)
treec6e4d8b91fa6108e9e8b8f53e5d5a37cee36c334 /src/thread
parent4a76017445c1ffe4b7a99b4e2e5dc7f661eaae2b (diff)
downloadntapi-9f88a284919df8327afd293aee79a86ae88b6f5e.tar.bz2
ntapi-9f88a284919df8327afd293aee79a86ae88b6f5e.tar.xz
__ntapi_tt_create_thread(): strictly align thread context and stack params.
Diffstat (limited to 'src/thread')
-rw-r--r--src/thread/ntapi_tt_create_thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread/ntapi_tt_create_thread.c b/src/thread/ntapi_tt_create_thread.c
index 87ff165..9105ec0 100644
--- a/src/thread/ntapi_tt_create_thread.c
+++ b/src/thread/ntapi_tt_create_thread.c
@@ -48,8 +48,8 @@ int32_t __stdcall __ntapi_tt_create_thread(
void * stack_system_limit;
uint32_t protect_type_old;
- nt_user_stack stack;
- nt_thread_context context;
+ nt_thread_context context __attr_aligned__(0x40);
+ nt_user_stack stack __attr_aligned__(0x10);
uintptr_t fsuspended;
uintptr_t * parg;