mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:55:42 +00:00
[CRT] Implement crt_process_init()
This commit is contained in:
parent
8043b76e85
commit
e91f201be2
5 changed files with 76 additions and 76 deletions
|
@ -163,6 +163,7 @@ int __cdecl WinMainCRTStartup (void)
|
|||
}
|
||||
|
||||
int __cdecl mainCRTStartup (void);
|
||||
BOOL crt_process_init(void);
|
||||
|
||||
#ifdef _WIN64
|
||||
int __mingw_init_ehandler (void);
|
||||
|
@ -171,6 +172,12 @@ int __mingw_init_ehandler (void);
|
|||
int __cdecl mainCRTStartup (void)
|
||||
{
|
||||
int ret = 255;
|
||||
#ifndef _DLL
|
||||
if (!crt_process_init())
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
#ifdef __SEH__
|
||||
asm ("\t.l_start:\n"
|
||||
"\t.seh_handler __C_specific_handler, @except\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue