forked from Mirrors/wine-wine
msvcrt: Prevent msvcrt.dll unloading.
parent
9a6567d1a6
commit
08422163cf
|
@ -112,7 +112,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||||
msvcrt_init_args();
|
msvcrt_init_args();
|
||||||
msvcrt_init_signals();
|
msvcrt_init_signals();
|
||||||
/* don't allow unloading msvcrt, we can't setup file handles twice */
|
/* don't allow unloading msvcrt, we can't setup file handles twice */
|
||||||
LdrAddRefDll( 0, hinstDLL );
|
LdrAddRefDll( LDR_ADDREF_DLL_PIN, hinstDLL );
|
||||||
TRACE("finished process init\n");
|
TRACE("finished process init\n");
|
||||||
break;
|
break;
|
||||||
case DLL_THREAD_ATTACH:
|
case DLL_THREAD_ATTACH:
|
||||||
|
|
Loading…
Reference in New Issue