mirror of
https://github.com/reactos/reactos.git
synced 2025-06-24 22:49:56 +00:00
[VCSTARTUP] Implement (w)mainCRTStartup
__acrt_initialize is here as a stub to later support linking ucrt statically. When it is statically linked the real function should be called, but when the executable links to ucrtdll, the initialization happens when the DLL is loaded, so we call a stub here.
This commit is contained in:
parent
d243b6cdf3
commit
a978879ddb
5 changed files with 136 additions and 0 deletions
18
sdk/lib/vcruntime/mainCRTStartup.cpp
Normal file
18
sdk/lib/vcruntime/mainCRTStartup.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
//
|
||||
// mainCRTStartup.c
|
||||
//
|
||||
// Copyright (c) 2024 Timo Kreuzer
|
||||
//
|
||||
// Implementation of ANSI executable entry point.
|
||||
//
|
||||
// SPDX-License-Identifier: MIT
|
||||
//
|
||||
|
||||
#include "commonCRTStartup.hpp"
|
||||
|
||||
extern "C" unsigned long mainCRTStartup(void*)
|
||||
{
|
||||
__security_init_cookie();
|
||||
|
||||
return __commonCRTStartup<decltype(main)>();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue