Added SILC errno API. Added SilcResult, generic error code and
[silc.git] / lib / silcutil / win32 / silcwin32thread.c
index cdcd50c0df9a0b32ee87af27387f3beead8e2660..fa35683dbe4b19b5ebd96de2d9f8d52c45d1ca2a 100644 (file)
@@ -74,6 +74,7 @@ SilcThread silc_thread_create(SilcThreadStart start_func, void *context,
 
   if (!thread->thread) {
     SILC_LOG_ERROR(("Could not create new thread"));
+    silc_set_errno_reason(SILC_ERR, "Could not create new thread");
     silc_free(thread);
     return NULL;
   }