Merge pull request #2820 from kumpera/license-change-rebased
[mono.git] / mono / metadata / threadpool-ms.c
index db40521860fc8316da0ccc6508eabc7dbc9e35b6..62fc34aef3f2b11e470b7a8912c819bbf68a6db1 100644 (file)
@@ -529,7 +529,7 @@ worker_park (void)
                if (interrupted)
                        goto done;
 
-               if (mono_coop_cond_timedwait (&threadpool->parked_threads_cond, &threadpool->active_threads_lock, rand_next ((void **)rand_handle, 5 * 1000, 60 * 1000)) != 0)
+               if (mono_coop_cond_timedwait (&threadpool->parked_threads_cond, &threadpool->active_threads_lock, rand_next (&rand_handle, 5 * 1000, 60 * 1000)) != 0)
                        timeout = TRUE;
 
                mono_thread_info_uninstall_interrupt (&interrupted);