mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 04:14:53 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
55
sdk/lib/crt/stdlib/_exit.c
Normal file
55
sdk/lib/crt/stdlib/_exit.c
Normal file
|
@ -0,0 +1,55 @@
|
|||
/* taken from wine exit.c */
|
||||
#include <precomp.h>
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
void _cexit( void )
|
||||
{
|
||||
LOCK_EXIT;
|
||||
__call_atexit();
|
||||
UNLOCK_EXIT;
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
void _c_exit( void )
|
||||
{
|
||||
/* All cleanup is done on DLL detach; Return to caller */
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
void _exit(int exitcode)
|
||||
{
|
||||
ExitProcess(exitcode);
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
void exit(int exitcode)
|
||||
{
|
||||
#if 0
|
||||
HMODULE hmscoree;
|
||||
static const WCHAR mscoreeW[] = {'m','s','c','o','r','e','e',0};
|
||||
void (WINAPI *pCorExitProcess)(int);
|
||||
#endif
|
||||
WARN("exit(%d) called\n",exitcode);
|
||||
_cexit();
|
||||
#if 0
|
||||
hmscoree = GetModuleHandleW(mscoreeW);
|
||||
|
||||
if (hmscoree)
|
||||
{
|
||||
pCorExitProcess = (void*)GetProcAddress(hmscoree, "CorExitProcess");
|
||||
|
||||
if (pCorExitProcess)
|
||||
pCorExitProcess(exitcode);
|
||||
}
|
||||
#endif
|
||||
ExitProcess(exitcode);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue