Free the memory view before we unload a builtin dll to avoid a race
condition.
This commit is contained in:
parent
dceae02d73
commit
fac7a5ab8b
@ -1724,8 +1724,8 @@ static void MODULE_FlushModrefs(void)
|
|||||||
}
|
}
|
||||||
SERVER_END_REQ;
|
SERVER_END_REQ;
|
||||||
|
|
||||||
if (wm->ldr.Flags & LDR_WINE_INTERNAL) wine_dll_unload( wm->ldr.SectionHandle );
|
|
||||||
NtUnmapViewOfSection( GetCurrentProcess(), mod->BaseAddress );
|
NtUnmapViewOfSection( GetCurrentProcess(), mod->BaseAddress );
|
||||||
|
if (wm->ldr.Flags & LDR_WINE_INTERNAL) wine_dll_unload( wm->ldr.SectionHandle );
|
||||||
if (cached_modref == wm) cached_modref = NULL;
|
if (cached_modref == wm) cached_modref = NULL;
|
||||||
RtlFreeUnicodeString( &mod->FullDllName );
|
RtlFreeUnicodeString( &mod->FullDllName );
|
||||||
RtlFreeHeap( GetProcessHeap(), 0, wm->deps );
|
RtlFreeHeap( GetProcessHeap(), 0, wm->deps );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user