From 1229b55b0fdb8ef46574eb33d37c04cba0dc38a4 Mon Sep 17 00:00:00 2001 From: tomascz Date: Thu, 16 Apr 2020 20:01:19 +0200 Subject: [PATCH] [#45] All DOSes: Foundation required for disk/volume verification (Part 30: Fixed deadlock) --- Main/src/BackgroundAction.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Main/src/BackgroundAction.cpp b/Main/src/BackgroundAction.cpp index 05002d79..5ce97928 100644 --- a/Main/src/BackgroundAction.cpp +++ b/Main/src/BackgroundAction.cpp @@ -111,7 +111,10 @@ void CBackgroundActionCancelable::SetProgressTarget(int targetState){ // sets Worker's target progress state, "100% completed" - SendDlgItemMessage( ID_STATE, PBM_SETRANGE32, 0, progressTarget=targetState ); + ::PostMessage( ::GetDlgItem(m_hWnd,ID_STATE), + PBM_SETRANGE32, + 0, progressTarget=targetState + ); } void CBackgroundActionCancelable::SetProgressTargetInfinity(){