mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 18:52:10 +00:00
Create a branch for Aleksandar Andrejevic for his work on NTVDM. See http://jira.reactos.org/browse/CORE-7250 for more details.
svn path=/branches/ntvdm/; revision=59241
This commit is contained in:
parent
3e3200acef
commit
4f0b8d3db0
20620 changed files with 0 additions and 1232833 deletions
27
lib/sdk/crt/misc/purecall.c
Normal file
27
lib/sdk/crt/misc/purecall.c
Normal file
|
@ -0,0 +1,27 @@
|
|||
|
||||
#include <precomp.h>
|
||||
|
||||
typedef void (__cdecl *MSVCRT_purecall_handler)(void);
|
||||
|
||||
static MSVCRT_purecall_handler purecall_handler = NULL;
|
||||
|
||||
/* _set_purecall_handler - not exported in native msvcrt */
|
||||
MSVCRT_purecall_handler CDECL _set_purecall_handler(MSVCRT_purecall_handler function)
|
||||
{
|
||||
MSVCRT_purecall_handler ret = purecall_handler;
|
||||
|
||||
TRACE("(%p)\n", function);
|
||||
purecall_handler = function;
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _purecall (MSVCRT.@)
|
||||
*/
|
||||
void CDECL _purecall(void)
|
||||
{
|
||||
if(purecall_handler)
|
||||
purecall_handler();
|
||||
_amsg_exit( 25 );
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue