Module: wine Branch: master Commit: 15d013067d7cacaa8f127586b5d03336c8c2fd1a URL: http://source.winehq.org/git/wine.git/?a=commit;h=15d013067d7cacaa8f127586b5...
Author: Michael Müller michael@fds-team.de Date: Sat Oct 4 02:51:51 2014 +0200
ntdll: Wait until builtin dlls are unloaded before releasing the virtual view.
---
dlls/ntdll/loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c index 3c2fc56..e1444d2 100644 --- a/dlls/ntdll/loader.c +++ b/dlls/ntdll/loader.c @@ -2642,8 +2642,8 @@ static void free_modref( WINE_MODREF *wm )
free_tls_slot( &wm->ldr ); RtlReleaseActivationContext( wm->ldr.ActivationContext ); - NtUnmapViewOfSection( NtCurrentProcess(), wm->ldr.BaseAddress ); if (wm->ldr.Flags & LDR_WINE_INTERNAL) wine_dll_unload( wm->ldr.SectionHandle ); + NtUnmapViewOfSection( NtCurrentProcess(), wm->ldr.BaseAddress ); if (cached_modref == wm) cached_modref = NULL; RtlFreeUnicodeString( &wm->ldr.FullDllName ); RtlFreeHeap( GetProcessHeap(), 0, wm->deps );