forked from Mirrors/wine-wine
ntdll: Align stack to 4 bytes.
parent
26c5839d61
commit
57a04062fe
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue