localspl: Unload only portmonitors in monitor_unloadall.

This commit is contained in:
Detlef Riekenberg 2009-09-29 13:17:02 +02:00 committed by Alexandre Julliard
parent c685729b72
commit 068e861d06
1 changed files with 3 additions and 2 deletions

View File

@ -346,7 +346,7 @@ static void monitor_unload(monitor_t * pm)
/****************************************************************** /******************************************************************
* monitor_unloadall [internal] * monitor_unloadall [internal]
* *
* release all printmonitors and unload them from memory, when needed * release all registered printmonitors and unload them from memory, when needed
* *
*/ */
@ -359,7 +359,8 @@ static void monitor_unloadall(void)
/* iterate through the list, with safety against removal */ /* iterate through the list, with safety against removal */
LIST_FOR_EACH_ENTRY_SAFE(pm, next, &monitor_handles, monitor_t, entry) LIST_FOR_EACH_ENTRY_SAFE(pm, next, &monitor_handles, monitor_t, entry)
{ {
monitor_unload(pm); /* skip monitorui dlls */
if (pm->monitor) monitor_unload(pm);
} }
LeaveCriticalSection(&monitor_handles_cs); LeaveCriticalSection(&monitor_handles_cs);
} }