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

condition.
This commit is contained in:
Alexandre Julliard 2004-11-06 03:54:23 +00:00
parent dceae02d73
commit fac7a5ab8b
1 changed files with 1 additions and 1 deletions

View File

@ -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 );