localspl: Unload monitor in DeleteMonitor.
commitdb4d01e191484729743839f9e2640cad5fef57fe
authorDmitry Timoshkov <dmitry@baikal.ru>
Fri, 6 Sep 2019 04:01:05 +0000 (6 12:01 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 6 Sep 2019 11:08:40 +0000 (6 13:08 +0200)
tree28bc26ee1fd33c0b3fa0923a355284dd53cb238a
parentd9518240c38a55ee1e2325ec0b1de631bcfc8460
localspl: Unload monitor in DeleteMonitor.

Some print monitors are very sensitive to loads/unloads being done
in a quick succession like AddMonitor() does, and that even leads to
crashes because the monitor I have here creates a thread on load and
when the thread starts - the monitor dll is already unloaded.
A solution to this is moving the monitor unloading to DeleteMonitor.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/localspl/provider.c