ntdll: Wait until builtin dlls are unloaded before releasing the virtual view.

This commit is contained in:
Michael Müller 2014-10-04 02:51:51 +02:00 committed by Alexandre Julliard
parent 6e4d52a752
commit 15d013067d
1 changed files with 1 additions and 1 deletions

View File

@ -2642,8 +2642,8 @@ static void free_modref( WINE_MODREF *wm )
free_tls_slot( &wm->ldr ); free_tls_slot( &wm->ldr );
RtlReleaseActivationContext( wm->ldr.ActivationContext ); RtlReleaseActivationContext( wm->ldr.ActivationContext );
NtUnmapViewOfSection( NtCurrentProcess(), wm->ldr.BaseAddress );
if (wm->ldr.Flags & LDR_WINE_INTERNAL) wine_dll_unload( wm->ldr.SectionHandle ); 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; if (cached_modref == wm) cached_modref = NULL;
RtlFreeUnicodeString( &wm->ldr.FullDllName ); RtlFreeUnicodeString( &wm->ldr.FullDllName );
RtlFreeHeap( GetProcessHeap(), 0, wm->deps ); RtlFreeHeap( GetProcessHeap(), 0, wm->deps );