From 302143eafb7b529ccf388c5de1d4ec47837745f6 Mon Sep 17 00:00:00 2001 From: ts-korhonen Date: Mon, 26 Apr 2021 16:09:50 +0300 Subject: [PATCH] Fix a deadlock with changing renderer and status bar activity --- src/win/win_stbar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/win/win_stbar.c b/src/win/win_stbar.c index ea7be0212..18d815cc2 100644 --- a/src/win/win_stbar.c +++ b/src/win/win_stbar.c @@ -149,7 +149,7 @@ ui_sb_update_icon(int tag, int active) if ((found != 0xff) && ((sb_part_icons[found] ^ active) & 1) && active) { sb_part_icons[found] |= 1; - SendMessage(hwndSBAR, SB_SETICON, found, + PostMessage(hwndSBAR, SB_SETICON, found, (LPARAM)hIcon[sb_part_icons[found]]); SetTimer(hwndMain, 0x8000 | found, 75, NULL); @@ -157,6 +157,7 @@ ui_sb_update_icon(int tag, int active) } + /* API: This is for the drive state indicator. */ void ui_sb_update_icon_state(int tag, int state)