Author: jgardou Date: Sun Jul 24 14:37:28 2011 New Revision: 52836
URL: http://svn.reactos.org/svn/reactos?rev=52836&view=rev Log: [MSVCRTEX] - I say let msvcrt handle atexit registered functions. Fix msvc build
Modified: trunk/reactos/lib/sdk/crt/startup/crtdll.c
Modified: trunk/reactos/lib/sdk/crt/startup/crtdll.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/startup/crtdll.... ============================================================================== --- trunk/reactos/lib/sdk/crt/startup/crtdll.c [iso-8859-1] (original) +++ trunk/reactos/lib/sdk/crt/startup/crtdll.c [iso-8859-1] Sun Jul 24 14:37:28 2011 @@ -49,8 +49,8 @@
static int __proc_attached = 0;
-extern _PVFV *__onexitbegin; -extern _PVFV *__onexitend; +//extern _PVFV *__onexitbegin; +//extern _PVFV *__onexitend;
extern int mingw_app_type;
@@ -65,7 +65,7 @@ static int pre_c_init (void) { - _PVFV *onexitbegin; +/* _PVFV *onexitbegin;
onexitbegin = (_PVFV *) malloc (32 * sizeof (_PVFV)); __onexitend = __onexitbegin = (_PVFV *) _encode_pointer (onexitbegin); @@ -73,7 +73,8 @@ if (onexitbegin == NULL) return 1; *onexitbegin = (_PVFV) NULL; - return 0; + return 0;*/ + return 1; }
WINBOOL WINAPI _CRT_INIT (HANDLE hDllHandle, DWORD dwReason, LPVOID lpreserved) @@ -135,7 +136,7 @@ _amsg_exit (31); } else - { + {/* _PVFV * onexitbegin = (_PVFV *) _decode_pointer (__onexitbegin); if (onexitbegin) { @@ -145,7 +146,7 @@ (**onexitend) (); free (onexitbegin); __onexitbegin = __onexitend = (_PVFV *) NULL; - } + }*/ __native_startup_state = __uninitialized; (void) InterlockedExchangePointer ((volatile PVOID *) &__native_startup_lock, 0); }