| version 1.2, 2003/10/21 11:22:05 | version 1.4, 2003/10/22 14:13:25 | 
| Line 219  static LRESULT CALLBACK dlgitem_proc(HWN | Line 219  static LRESULT CALLBACK dlgitem_proc(HWN | 
 | break; | break; | 
 |  |  | 
 | case WM_NOTIFY: | case WM_NOTIFY: | 
| if ((((NMHDR *)lp)->code) == PSN_APPLY) { | if ((((NMHDR *)lp)->code) == (UINT)PSN_APPLY) { | 
 | cfg = m->cfg; | cfg = m->cfg; | 
 | update = 0; | update = 0; | 
 | r = SendDlgItemMessage(hWnd, m->idc[ID_PORT], | r = SendDlgItemMessage(hWnd, m->idc[ID_PORT], | 
| Line 430  static void pc9861getspeed(HWND hWnd, co | Line 430  static void pc9861getspeed(HWND hWnd, co | 
 | static void pc9861getint(HWND hWnd, const PC9861MODE_T *m) { | static void pc9861getint(HWND hWnd, const PC9861MODE_T *m) { | 
 |  |  | 
 | LRESULT r; | LRESULT r; | 
| int             i; | UINT    i; | 
 |  |  | 
 | r = SendDlgItemMessage(hWnd, m->idc_int, CB_GETCURSEL, 0, 0); | r = SendDlgItemMessage(hWnd, m->idc_int, CB_GETCURSEL, 0, 0); | 
 | if (r != CB_ERR) { | if (r != CB_ERR) { | 
| Line 682  static LRESULT CALLBACK pc9861mainProc(H | Line 682  static LRESULT CALLBACK pc9861mainProc(H | 
 | break; | break; | 
 |  |  | 
 | case WM_NOTIFY: | case WM_NOTIFY: | 
| if ((((NMHDR *)lp)->code) == PSN_APPLY) { | if ((((NMHDR *)lp)->code) == (UINT)PSN_APPLY) { | 
 | update = 0; | update = 0; | 
 | r = GetDlgItemCheck(hWnd, IDC_PC9861E); | r = GetDlgItemCheck(hWnd, IDC_PC9861E); | 
 | if (np2cfg.pc9861enable != r) { | if (np2cfg.pc9861enable != r) { |