fix a bug in dskOnRemoveCtrlInstance for procs runmode

This commit is contained in:
Vincent Wei
2022-10-19 19:36:16 +08:00
parent c444030334
commit 0adddb422b
+5 -5
View File
@@ -3545,11 +3545,6 @@ static int dskOnRemoveCtrlInstance (PCONTROL pParent, PCONTROL pCtrl)
cliFreeZOrderNode ((PMAINWIN)pCtrl);
}
if (fFound) {
pCtrl->pcci->nUseCount --;
return 0;
}
if ((HWND)pCtrl == __mg_captured_wnd) {
/* force release the capture */
__mg_captured_wnd = 0;
@@ -3564,6 +3559,11 @@ static int dskOnRemoveCtrlInstance (PCONTROL pParent, PCONTROL pCtrl)
sg_msgAutoRepeat.hwnd = 0;
}
if (fFound) {
pCtrl->pcci->nUseCount--;
return 0;
}
return -1;
}