https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ae534e8cee73c1b938c69…
commit ae534e8cee73c1b938c69f129d455dd77bfc55f8
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Thu Dec 14 15:41:58 2023 +0100
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu Dec 14 14:41:58 2023 +0000
[USER32] GetNextDlgGroupItem(): Remove WineSync copy-pasta (#6162)
Improve WineSync.
Addendum to 61fb8a2 (r19831).
---
win32ss/user/user32/windows/dialog.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/win32ss/user/user32/windows/dialog.c b/win32ss/user/user32/windows/dialog.c
index 842aeb5b0a3..0fb12e55e28 100644
--- a/win32ss/user/user32/windows/dialog.c
+++ b/win32ss/user/user32/windows/dialog.c
@@ -2296,25 +2296,18 @@ GetNextDlgGroupItem(
{
if (!IsChild (hDlg, hCtl)) return 0;
/* Make sure hwndCtrl is a top-level child */
-
}
else
{
/* No ctrl specified -> start from the beginning */
if (!(hCtl = GetWindow( hDlg, GW_CHILD ))) return 0;
- /* MSDN is wrong. fPrevious does not result in the last child */
-
- /* No ctrl specified -> start from the beginning */
- if (!(hCtl = GetWindow( hDlg, GW_CHILD ))) return 0;
-
- /* MSDN is wrong. fPrevious does not result in the last child */
+ /* MSDN is wrong. bPrevious does not result in the last child */
/* Maybe that first one is valid. If so then we don't want to skip it*/
if ((GetWindowLongPtrW( hCtl, GWL_STYLE ) & (WS_VISIBLE|WS_DISABLED)) ==
WS_VISIBLE)
{
return hCtl;
}
-
}
/* Always go forward around the group and list of controls; for the