Print bound region when bound checking error occurs
[tinycc.git] / win32 / lib / dllcrt1.c
blob5a9be82b372c830beb335c5609dd68a1f8ff709b
1 //+---------------------------------------------------------------------------
3 #include <tchar.h>
4 #include <windows.h>
5 #include "crtinit.c"
7 BOOL WINAPI DllMain (HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved);
9 BOOL WINAPI _dllstart(HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved)
11 BOOL bRet;
12 if (dwReason == DLL_PROCESS_ATTACH) /* ignore DLL_THREAD_ATTACH */
13 run_ctors(0, 0, 0);
14 bRet = DllMain (hDll, dwReason, lpReserved);
15 if (dwReason == DLL_PROCESS_DETACH) /* ignore DLL_THREAD_DETACH */
16 run_dtors();
17 return bRet;