Skip to content

Commit

Permalink
[USER32] GetNextDlgGroupItem(): Remove WineSync copy-pasta (reactos#6162
Browse files Browse the repository at this point in the history
)


Improve WineSync.
Addendum to 61fb8a2 (r19831).
  • Loading branch information
SergeGautherie authored Dec 14, 2023
1 parent 3f5fd1d commit ae534e8
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions win32ss/user/user32/windows/dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae534e8

Please sign in to comment.