Alexandre Julliard : ntdll:
Set initial module refcount to 1 to avoid unloading during imports
fixup.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jul 31 15:01:22 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: d16c7f96c9cbc1da90bc0246321b2de0e0e4b4af
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d16c7f96c9cbc1da90bc0246321b2de0e0e4b4af
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Jul 31 21:03:01 2006 +0200
ntdll: Set initial module refcount to 1 to avoid unloading during imports fixup.
---
dlls/ntdll/loader.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index 0ca8f2a..d3a3d78 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -640,7 +640,7 @@ static WINE_MODREF *alloc_module( HMODUL
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;
More information about the wine-cvs
mailing list