diff --git a/dlls/msvcrt/main.c b/dlls/msvcrt/main.c index a62e62b2526..df42a9ac428 100644 --- a/dlls/msvcrt/main.c +++ b/dlls/msvcrt/main.c @@ -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: