user32/dialog.c: GetNextDlgTabItem returns hwndDlg if next item not found
Mikhail Maroukhine
mikolg at yandex.ru
Sun Apr 4 11:51:32 CDT 2010
---
dlls/user32/dialog.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/dialog.c b/dlls/user32/dialog.c
index 79f5182..cdd0778 100644
--- a/dlls/user32/dialog.c
+++ b/dlls/user32/dialog.c
@@ -1674,7 +1674,10 @@ static HWND DIALOG_GetNextTabItem( HWND hwndMain, HWND hwndDlg, HWND hwndCtrl, B
if(!retWnd)
retWnd = DIALOG_GetNextTabItem(hwndMain,hwndMain,NULL,fPrevious );
}
- return retWnd ? retWnd : hwndCtrl;
+ /* if next control not found returns hwndDlg.
+ This behaviour is checked on Windows XP
+ */
+ return retWnd ? retWnd : (hwndCtrl ? hwndCtrl : hwndDlg);
}
/***********************************************************************
--
1.6.3.3
------------lk6sPEJEt8LuRNTG0JDQBI--
More information about the wine-patches
mailing list