Commit 548a6afc authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcr100: Fix crash when setting scheduler in schedule_task_proc.

parent bd43bb53
...@@ -1342,7 +1342,7 @@ static void WINAPI schedule_task_proc(PTP_CALLBACK_INSTANCE instance, void *cont ...@@ -1342,7 +1342,7 @@ static void WINAPI schedule_task_proc(PTP_CALLBACK_INSTANCE instance, void *cont
arg = *(schedule_task_arg*)context; arg = *(schedule_task_arg*)context;
operator_delete(context); operator_delete(context);
if(&arg.scheduler->scheduler != try_get_current_scheduler()) { if(&arg.scheduler->scheduler != get_current_scheduler()) {
ThreadScheduler_Attach(arg.scheduler); ThreadScheduler_Attach(arg.scheduler);
detach = TRUE; detach = TRUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment