Skip to content

Commit

Permalink
fix to avoid reacquiring a mutex reentrantly (#16985)
Browse files Browse the repository at this point in the history
  • Loading branch information
warmenhoven authored Sep 10, 2024
1 parent 8ba57c7 commit 4d20d08
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gfx/gfx_widgets.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,18 +243,16 @@ void gfx_widgets_msg_queue_push(

if (task)
{
uint8_t flg = task_get_flags(task);

title = msg_widget->msg = strdup(task->title);
msg_widget->msg_new = strdup(title);
title_length = strlen(title);
msg_widget->msg_len = title_length;

if (!string_is_empty(task->error))
msg_widget->flags |= DISPWIDG_FLAG_TASK_ERROR;
if ((flg & RETRO_TASK_FLG_CANCELLED) > 0)
if ((task->flags & RETRO_TASK_FLG_CANCELLED) > 0)
msg_widget->flags |= DISPWIDG_FLAG_TASK_CANCELLED;
if ((flg & RETRO_TASK_FLG_FINISHED) > 0)
if ((task->flags & RETRO_TASK_FLG_FINISHED) > 0)
msg_widget->flags |= DISPWIDG_FLAG_TASK_FINISHED;
msg_widget->task_progress = task->progress;
msg_widget->task_ident = task->ident;
Expand Down

0 comments on commit 4d20d08

Please sign in to comment.