Modify CheckRadioButton function to be more consistent with Windows.

This commit is contained in:
Kevin Groeneveld 2003-09-12 00:23:30 +00:00 committed by Alexandre Julliard
parent 0307701201
commit 6982039ffc
1 changed files with 2 additions and 3 deletions

View File

@ -1294,9 +1294,8 @@ BOOL WINAPI CheckRadioButton( HWND hwndDlg, UINT firstID,
{
RADIOGROUP radioGroup;
/* perform bounds checking for a radio button group */
radioGroup.firstID = min(min(firstID, lastID), checkID);
radioGroup.lastID = max(max(firstID, lastID), checkID);
radioGroup.firstID = firstID;
radioGroup.lastID = lastID;
radioGroup.checkID = checkID;
return EnumChildWindows(hwndDlg, (WNDENUMPROC)CheckRB,