Author: tkreuzer
Date: Sun Oct 19 10:27:22 2014
New Revision: 64821
URL:
http://svn.reactos.org/svn/reactos?rev=64821&view=rev
Log:
[CRT]
Fix MSVC global constructor initialization.
Modified:
trunk/reactos/lib/sdk/crt/startup/mscmain.c
Modified: trunk/reactos/lib/sdk/crt/startup/mscmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/startup/mscmai…
==============================================================================
--- trunk/reactos/lib/sdk/crt/startup/mscmain.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/startup/mscmain.c [iso-8859-1] Sun Oct 19 10:27:22 2014
@@ -20,6 +20,12 @@
#error Unsupported platform
#endif
+/*
+ * Initializer / constructor handling
+ * see
http://msdn.microsoft.com/en-us/library/bb918180.aspx
+ * Destructors are registered from the initializers using atexit()
+ */
+
extern _PVFV __xi_a[];
extern _PVFV __xi_z[];
extern _PVFV __xc_a[];
@@ -34,7 +40,7 @@
_PVFV *current;
for (current = start; current < end; current++)
{
- if (*current != NULL);
+ if (*current != NULL)
(*current)();
}
}
@@ -47,12 +53,6 @@
{
/* Nothing to do */
return 1;
-}
-
-void
-__do_global_dtors(void)
-{
-
}
void