1/* 2 * COPYRIGHT: See COPYING in the top level directory 3 * PROJECT: ReactOS C run time library 4 * PURPOSE: Stack checker 5 * PROGRAMMERS: J�r�me Gardou 6 */ 7 8#include <asm.inc> 9#include <ks386.inc> 10 11/* Code is taken from wine 1.3.33, 12 * Copyright Jon Griffiths and Alexandre Julliard 13 */ 14EXTERN __chkesp_failed:PROC 15 16PUBLIC __chkesp 17.code 18__chkesp: 19 jnz .test_failed 20 ret 21 22.test_failed: 23 push ebp 24 mov ebp, esp 25 sub esp, 12 26 push eax 27 push ecx 28 push edx 29 call __chkesp_failed 30 pop edx 31 pop ecx 32 pop eax 33 leave 34 ret 35 36END