mirror of
https://github.com/reactos/reactos.git
synced 2025-06-03 00:10:39 +00:00
[CRT]
- Export _resetstkoflw from msvcrt. Implementation from Wine 1.3.32 svn path=/trunk/; revision=54312
This commit is contained in:
parent
aeacf320c4
commit
bf96abff4b
4 changed files with 16 additions and 3 deletions
|
@ -783,7 +783,7 @@
|
||||||
# extern _pwctype
|
# extern _pwctype
|
||||||
@ cdecl _read(long ptr long)
|
@ cdecl _read(long ptr long)
|
||||||
# stub _realloc_dbg
|
# stub _realloc_dbg
|
||||||
# stub _resetstkoflw
|
@ cdecl _resetstkoflw()
|
||||||
@ cdecl _rmdir(str)
|
@ cdecl _rmdir(str)
|
||||||
@ cdecl _rmtmp()
|
@ cdecl _rmtmp()
|
||||||
@ cdecl _rotl(long long)
|
@ cdecl _rotl(long long)
|
||||||
|
|
|
@ -21,11 +21,11 @@ list(APPEND CRT_SOURCE
|
||||||
direct/wmkdir.c
|
direct/wmkdir.c
|
||||||
direct/wrmdir.c
|
direct/wrmdir.c
|
||||||
except/abnorter.c
|
except/abnorter.c
|
||||||
except/checkesp.c
|
|
||||||
except/cpp.c
|
except/cpp.c
|
||||||
except/cppexcept.c
|
except/cppexcept.c
|
||||||
except/except.c
|
except/except.c
|
||||||
except/matherr.c
|
except/matherr.c
|
||||||
|
except/stack.c
|
||||||
except/xcptfil.c
|
except/xcptfil.c
|
||||||
float/chgsign.c
|
float/chgsign.c
|
||||||
float/copysign.c
|
float/copysign.c
|
||||||
|
|
|
@ -77,11 +77,11 @@
|
||||||
</directory>
|
</directory>
|
||||||
<directory name="except">
|
<directory name="except">
|
||||||
<file>abnorter.c</file>
|
<file>abnorter.c</file>
|
||||||
<file>checkesp.c</file>
|
|
||||||
<file>cpp.c</file>
|
<file>cpp.c</file>
|
||||||
<file>cppexcept.c</file>
|
<file>cppexcept.c</file>
|
||||||
<file>except.c</file>
|
<file>except.c</file>
|
||||||
<file>matherr.c</file>
|
<file>matherr.c</file>
|
||||||
|
<file>stack.c</file>
|
||||||
<if property="ARCH" value="i386">
|
<if property="ARCH" value="i386">
|
||||||
<directory name="i386">
|
<directory name="i386">
|
||||||
<file>prolog.s</file>
|
<file>prolog.s</file>
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#include <precomp.h>
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* _chkesp (MSVCRT.@)
|
* _chkesp (MSVCRT.@)
|
||||||
*
|
*
|
||||||
|
@ -33,3 +35,14 @@ void _chkesp(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* __i386__ */
|
#endif /* __i386__ */
|
||||||
|
|
||||||
|
/*********************************************************************
|
||||||
|
* _resetstkoflw (MSVCRT.@)
|
||||||
|
*/
|
||||||
|
int CDECL _resetstkoflw(void)
|
||||||
|
{
|
||||||
|
int stack_addr;
|
||||||
|
|
||||||
|
/* causes stack fault that updates NtCurrentTeb()->Tib.StackLimit */
|
||||||
|
return VirtualProtect( &stack_addr, 1, PAGE_GUARD|PAGE_READWRITE, NULL );
|
||||||
|
}
|
Loading…
Reference in a new issue