Ignore:
Timestamp:
Feb 5, 2003, 3:04:33 PM (23 years ago)
Author:
sandervl
Message:

Check ESP when calling the entrypoint of a newly created thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/exceptutil.asm

    r9442 r9754  
    1 ; $Id: exceptutil.asm,v 1.21 2002-11-29 09:30:55 sandervl Exp $
     1; $Id: exceptutil.asm,v 1.22 2003-02-05 14:04:33 sandervl Exp $
    22
    33;/*
     
    159159        push    ebp
    160160        mov     ebp, esp
     161
     162;We're asking for problems if our stack start near a 64kb boundary
     163;Some OS/2 thunking procedures can choke on misaligned stack addresses
     164        mov     eax, esp
     165        and     eax, 0FFFFh
     166        cmp     eax, 0E000h
     167        jge     @goodthreadstack
     168
     169        ;set ESP to the top of the next 64kb block
     170        add     eax, 16
     171        sub     esp, eax
     172@goodthreadstack:
    161173
    162174        push    dword ptr [ebp+12]
Note: See TracChangeset for help on using the changeset viewer.