* threads.c (mono_thread_attach): Initialize synch_lock field so mono_thread_detach works again. svn path=/trunk/mono/; revision=34787
@@ -1,5 +1,8 @@
2004-10-07 Zoltan Varga <[email protected]>
+ * threads.c (mono_thread_attach): Initialize synch_lock field so
+ mono_thread_detach works again.
+
* loader.c (mono_lookup_pinvoke_call): Try the dllname prefixed with
'lib' too. Fixes #63130.
@@ -378,6 +378,7 @@ mono_thread_attach (MonoDomain *domain)
thread->handle=thread_handle;
thread->tid=tid;
+ thread->synch_lock=mono_object_new (domain, mono_defaults.object_class);
#ifdef THREAD_DEBUG
g_message(G_GNUC_PRETTY_FUNCTION ": Attached thread ID %d (handle %p)",