From 9f88a284919df8327afd293aee79a86ae88b6f5e Mon Sep 17 00:00:00 2001 From: midipix Date: May 27 2016 21:40:54 +0000 Subject: __ntapi_tt_create_thread(): strictly align thread context and stack params. --- 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;