|
|
| version 1.16, 2007/01/08 07:52:01 | version 1.17, 2007/01/08 08:52:22 |
|---|---|
| Line 388 static void pc9861getspeed(HWND hWnd, co | Line 388 static void pc9861getspeed(HWND hWnd, co |
| mode = *(m->dip_mode); | mode = *(m->dip_mode); |
| r = SendDlgItemMessage(hWnd, m->idc_speed, CB_GETCURSEL, 0, 0); | r = SendDlgItemMessage(hWnd, m->idc_speed, CB_GETCURSEL, 0, 0); |
| if (r != CB_ERR) { | if (r != CB_ERR) { |
| UINT speed = r; | UINT speed = (UINT)r; |
| if (speed > (NELEMENTS(pc9861k_speed) - 1)) { | if (speed > (NELEMENTS(pc9861k_speed) - 1)) { |
| speed = NELEMENTS(pc9861k_speed) - 1; | speed = NELEMENTS(pc9861k_speed) - 1; |
| } | } |