http://bugs.winehq.org/show_bug.cgi?id=20711
--- Comment #21 from Markus mst@collogia.de 2010-03-29 01:13:18 ---
Do we really need to unload the library if it isn't loaded anymore?
Finally got the idea. Nevertheless using GetModuleHandle leaves a bad taste. We cannot rely on the library existence between the two calls in a multithreading environment. To be sure one needs to call GetModuleHandleEx using the increment counter. So we once again have the FreeLibrary Call.
Do you think this would be a possible solution?