ntdll: Align stack to 4 bytes.

oldstable
Marcus Meissner 2006-09-27 22:10:16 +02:00 committed by Alexandre Julliard
parent 26c5839d61
commit 57a04062fe
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ typedef void (WINAPI *raise_func)( EXCEPTION_RECORD *rec, CONTEXT *context );
*/
inline static void *init_handler( const SIGCONTEXT *sigcontext, WORD *fs, WORD *gs )
{
void *stack = (void *)ESP_sig(sigcontext);
void *stack = (void *)(ESP_sig(sigcontext) & ~3);
TEB *teb = get_current_teb();
struct ntdll_thread_regs *thread_regs = (struct ntdll_thread_regs *)teb->SpareBytes1;