Commit fac7a5ab authored by Alexandre Julliard's avatar Alexandre Julliard

Free the memory view before we unload a builtin dll to avoid a race

condition.
parent dceae02d
......@@ -1724,8 +1724,8 @@ static void MODULE_FlushModrefs(void)
}
SERVER_END_REQ;
if (wm->ldr.Flags & LDR_WINE_INTERNAL) wine_dll_unload( wm->ldr.SectionHandle );
NtUnmapViewOfSection( GetCurrentProcess(), mod->BaseAddress );
if (wm->ldr.Flags & LDR_WINE_INTERNAL) wine_dll_unload( wm->ldr.SectionHandle );
if (cached_modref == wm) cached_modref = NULL;
RtlFreeUnicodeString( &mod->FullDllName );
RtlFreeHeap( GetProcessHeap(), 0, wm->deps );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment