extern func_ptr __CTOR_LIST__[];
extern func_ptr __DTOR_LIST__[];
-static HMODULE hMsvcrt = NULL;
+//static HMODULE hMsvcrt = NULL;
typedef void __cdecl flongjmp(jmp_buf _Buf,int _Value);
(*(p)) ();
p++;
}
- if (hMsvcrt)
- {
- FreeLibrary (hMsvcrt);
- hMsvcrt = NULL;
- }
+ //if (hMsvcrt)
+ // {
+ // FreeLibrary (hMsvcrt);
+ // hMsvcrt = NULL;
+ // }
}
void
unsigned long nptrs = (unsigned long) (ptrdiff_t) __CTOR_LIST__[0];
unsigned long i;
- if (!hMsvcrt) {
- hMsvcrt = LoadLibrary ("msvcrt.dll");
- fctMsvcrtLongJmp = (flongjmp *) GetProcAddress( hMsvcrt, "longjmp");
- }
+ //if (!hMsvcrt) {
+ // hMsvcrt = LoadLibrary ("msvcrt.dll");
+ // fctMsvcrtLongJmp = (flongjmp *) GetProcAddress( hMsvcrt, "longjmp");
+ //}
if (nptrs == (unsigned long) -1)
{