Commit 6982039f authored by Kevin Groeneveld's avatar Kevin Groeneveld Committed by Alexandre Julliard

Modify CheckRadioButton function to be more consistent with Windows.

parent 03077012
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment