Commit 57a04062 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

ntdll: Align stack to 4 bytes.

parent 26c5839d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment