Fixed an unbalanced windows lock/unlock sequence in GetNextDlgTabItem.

This commit is contained in:
Noel Borthwick 1999-05-02 09:16:44 +00:00 committed by Alexandre Julliard
parent 89faa56700
commit 0b027d6c7e
1 changed files with 6 additions and 1 deletions

View File

@ -1801,7 +1801,12 @@ HWND WINAPI GetNextDlgTabItem( HWND hwndDlg, HWND hwndCtrl,
else
{
/* No ctrl specified -> start from the beginning */
if (!(pWndCtrl = WIN_LockWndPtr(pWndDlg->child))) return 0;
if (!(pWndCtrl = WIN_LockWndPtr(pWndDlg->child)))
{
retvalue = 0;
goto END;
}
if (!fPrevious)
while (pWndCtrl->next) WIN_UpdateWndPtr(&pWndCtrl,pWndCtrl->next);
}