mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 16:23:37 +00:00
msvcr100: Fix crash when setting scheduler in schedule_task_proc.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53672
This commit is contained in:
parent
bd43bb5304
commit
548a6afccb
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue