Skip to content

Commit

Permalink
Fix a bug reported in Issue #94.
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentWei committed Oct 19, 2022
1 parent 57cc744 commit a9da4dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/kernel/desktop-comm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1743,11 +1743,6 @@ static int dskOnRemoveCtrlInstance (PCONTROL pParent, PCONTROL pCtrl)
FreeZOrderNode (0, pCtrl->idx_znode, NULL);
}

if (fFound) {
pCtrl->pcci->nUseCount --;
return 0;
}

if ((HWND)pCtrl == __mg_captured_wnd) {
/* force release the capture */
__mg_captured_wnd = 0;
Expand All @@ -1762,6 +1757,11 @@ static int dskOnRemoveCtrlInstance (PCONTROL pParent, PCONTROL pCtrl)
sg_msgAutoRepeat.hwnd = 0;
}

if (fFound) {
pCtrl->pcci->nUseCount--;
return 0;
}

return -1;
}

Expand Down

0 comments on commit a9da4dd

Please sign in to comment.