[1/3] mscoree: Store the AppDomain from CorExeMain, for use in other functions.

Juan Lang juan.lang at gmail.com
Mon Aug 30 14:58:10 CDT 2010


Hi Vincent,

+        EnterCriticalSection(&mono_lib_cs);
+        if (!mono_handle)
+        {
+            ERR("CorExitProcess called on another thread?\n");
+            return -1;
you don't release mono_lib_cs here.

Similarly, in patch 3,
 STDAPI ClrCreateManagedInstance(LPCWSTR pTypeName, REFIID riid, void
**ppObject)
(snip)
+        EnterCriticalSection(&mono_lib_cs);
+        if (!mono_handle)
+        {
+            ERR("CorExitProcess called on another thread?\n");
+            return E_FAIL;

you don't release mono_lib_cs here, and the error message looks suspicious.
--Juan



More information about the wine-devel mailing list