Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/ttpcmn/ttcmn.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3675 by maya, Mon Nov 9 02:15:46 2009 UTC revision 3707 by maya, Fri Nov 27 08:27:43 2009 UTC
# Line 1972  int PASCAL DetectComPorts(LPWORD ComPort Line 1972  int PASCAL DetectComPorts(LPWORD ComPort
1972  #if 1  #if 1
1973                  for (i=1; i<=ComPortMax; i++) {                  for (i=1; i<=ComPortMax; i++) {
1974                          FILE *fp;                          FILE *fp;
1975                          char buf[11]; // \\.\COMxxx + NULL                          char buf[12]; // \\.\COMxxxx + NULL
1976                          _snprintf_s(buf, sizeof(buf), _TRUNCATE, "\\\\.\\COM%d", i);                          _snprintf_s(buf, sizeof(buf), _TRUNCATE, "\\\\.\\COM%d", i);
1977                          if ((fp = fopen(buf, "r")) != NULL) {                          if ((fp = fopen(buf, "r")) != NULL) {
1978                                  fclose(fp);                                  fclose(fp);

Legend:
Removed from v.3675  
changed lines
  Added in v.3707

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26