|
Petr
| Joined: 21 Jun 2006 |
| Posts: 7 |
|
|
 |
Posted: Fri Feb 23, 2007 3:51 pm |
|
 |
 |
 |
 |
Originally submitted by AL.
| AL wrote: |
*** wince_dlg.c.orig Tue Jan 23 11:37:10 2007
--- wince_dlg.c Tue Jan 23 11:38:14 2007
***************
*** 261,267 ****
wchar_t wport[6];
wchar_t whost[lenof(cfg.host)];
GetDlgItemText(hwnd, IDC_CMB_HOST, whost, lenof(whost));
! GetDlgItemText(hwnd, IDC_PORTNO, wport, 5);
wcstombs(cfg.host, whost, lenof(cfg.host));
//strcpy(cfg.host, "10.166.195.142");
port = _ttoi(wport);
--- 261,267 ----
wchar_t wport[6];
wchar_t whost[lenof(cfg.host)];
GetDlgItemText(hwnd, IDC_CMB_HOST, whost, lenof(whost));
! GetDlgItemText(hwnd, IDC_PORTNO, wport, 6);
wcstombs(cfg.host, whost, lenof(cfg.host));
//strcpy(cfg.host, "10.166.195.142");
port = _ttoi(wport);
I compiled and tested this on my xv6700. |
|
|
|