[CRT]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 27 Aug 2011 09:14:57 +0000 (09:14 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 27 Aug 2011 09:14:57 +0000 (09:14 +0000)
- Do not skip calling DllMain on non-GCC builds

svn path=/trunk/; revision=53465

reactos/lib/sdk/crt/startup/crtdll.c

index 6fa17a8..0cd1968 100644 (file)
@@ -199,8 +199,8 @@ __DllMainCRTStartup (HANDLE hDllHandle, DWORD dwReason, LPVOID lpreserved)
            goto i__leave;
          }
     }
-  if (dwReason == DLL_PROCESS_ATTACH)
 #if defined(__GNUC__)
+  if (dwReason == DLL_PROCESS_ATTACH)
     __main ();
 #endif
   retcode = DllMain(hDllHandle,dwReason,lpreserved);