From df93214a5243c1da378d048a6743191977cc736d Mon Sep 17 00:00:00 2001 From: Rein Klazes Date: Sun, 9 Nov 2003 00:26:26 +0000 Subject: [PATCH] If GetNextDlgTabItem() cannot find any next control, return the handle of the original control. --- windows/dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/dialog.c b/windows/dialog.c index 434644d44e3..5c3503fb0f7 100644 --- a/windows/dialog.c +++ b/windows/dialog.c @@ -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; } /***********************************************************************