Commit df93214a authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

If GetNextDlgTabItem() cannot find any next control, return the handle

of the original control.
parent f45325e4
......@@ -1476,7 +1476,7 @@ static HWND DIALOG_GetNextTabItem( HWND hwndMain, HWND hwndDlg, HWND hwndCtrl, B
if(!retWnd)
retWnd = DIALOG_GetNextTabItem(hwndMain,hwndMain,NULL,fPrevious );
}
return retWnd;
return retWnd ? retWnd : hwndCtrl;
}
/***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment