ntdll: Wait until builtin dlls are unloaded before releasing the virtual view.
This commit is contained in:
parent
6e4d52a752
commit
15d013067d
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue