msvcrt: Prevent msvcrt.dll unloading.

oldstable
Nikolay Sivov 2013-10-15 10:22:23 +04:00 committed by Alexandre Julliard
parent 9a6567d1a6
commit 08422163cf
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
msvcrt_init_args();
msvcrt_init_signals();
/* 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");
break;
case DLL_THREAD_ATTACH: