ntdll: Set initial module refcount to 1 to avoid unloading during imports fixup.

This commit is contained in:
Alexandre Julliard 2006-07-31 21:03:01 +02:00
parent 30a3866b78
commit d16c7f96c9
1 changed files with 1 additions and 1 deletions

View File

@ -640,7 +640,7 @@ static WINE_MODREF *alloc_module( HMODULE hModule, LPCWSTR filename )
wm->ldr.EntryPoint = NULL;
wm->ldr.SizeOfImage = nt->OptionalHeader.SizeOfImage;
wm->ldr.Flags = LDR_DONT_RESOLVE_REFS;
wm->ldr.LoadCount = 0;
wm->ldr.LoadCount = 1;
wm->ldr.TlsIndex = -1;
wm->ldr.SectionHandle = NULL;
wm->ldr.CheckSum = 0;