[MSVCRT] Initialize exception support in DllMain

This commit is contained in:
Timo Kreuzer 2023-09-20 15:42:04 +03:00
parent 86f2d4cd4e
commit 1a6b6a27b2
2 changed files with 4 additions and 1 deletions

View file

@ -30,6 +30,7 @@ extern char** _environ; /* pointer to environment block */
extern char** __initenv; /* pointer to initial environment block */
extern wchar_t** _wenviron; /* pointer to environment block */
extern wchar_t** __winitenv; /* pointer to initial environment block */
extern void msvcrt_init_exception(void*) DECLSPEC_HIDDEN;
/* LIBRARY ENTRY POINT ********************************************************/
@ -43,6 +44,8 @@ DllMain(PVOID hinstDll, ULONG dwReason, PVOID reserved)
TRACE("Process Attach\n");
msvcrt_init_exception(hinstDll);
if (!crt_process_init())
{
ERR("crt_init() failed!\n");

View file

@ -934,7 +934,7 @@
@ stub -version=0x600+ _scwprintf_p_l
@ cdecl _searchenv(str str ptr)
@ cdecl -version=0x600+ _searchenv_s(str str ptr long)
@ stub -version=0x600+ -arch=i386 _seh_longjmp_unwind4
@ stdcall -version=0x600+ -arch=i386 _seh_longjmp_unwind4(ptr)
@ stdcall -arch=i386 _seh_longjmp_unwind(ptr)
@ stub -arch=i386 _set_SSE2_enable
@ stub -version=0x600+ _set_controlfp