17 |
* along with WinPT; if not, write to the Free Software Foundation, |
* along with WinPT; if not, write to the Free Software Foundation, |
18 |
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
19 |
*/ |
*/ |
20 |
|
|
21 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
22 |
#include <config.h> |
#include <config.h> |
23 |
#endif |
#endif |
42 |
|
|
43 |
GetDlgItemText (dlg, id, buf, 31); |
GetDlgItemText (dlg, id, buf, 31); |
44 |
for (i=0; i < strlen (buf); i++) { |
for (i=0; i < strlen (buf); i++) { |
45 |
if (!isdigit (buf[i])) |
if (!isdigit ((unsigned int)buf[i])) |
46 |
return -1; |
return -1; |
47 |
} |
} |
48 |
return 0; |
return 0; |
112 |
{ |
{ |
113 |
const char *proxy = NULL, *user=NULL, *pass = NULL; |
const char *proxy = NULL, *user=NULL, *pass = NULL; |
114 |
int port = 0, auth = 0; |
int port = 0, auth = 0; |
|
int rc = 0; |
|
115 |
|
|
116 |
switch (msg) { |
switch (msg) { |
117 |
case WM_INITDIALOG: |
case WM_INITDIALOG: |