wm->modname might be invalid at the end of FreeLibrary.
diff --git a/loader/module.c b/loader/module.c index 44018e6..dd12615 100644 --- a/loader/module.c +++ b/loader/module.c
@@ -1614,7 +1614,7 @@ DEBUG_SendUnloadDLLEvent( wm->module ); } - TRACE("(%s) - END\n", wm->modname ); + TRACE("END\n"); MODULE_FlushModrefs();