Changeset 1780 for trunk/dll/arccnrs.c


Ignore:
Timestamp:
Jun 28, 2014, 8:05:22 PM (11 years ago)
Author:
Gregg Young
Message:

Fixed errors found by cppcheck. Most had the potential to cause difficult to reproduce traps. Also fixed retry code for failure to create an archive work directory and the failure of the mailto code to drop trailing >.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/arccnrs.c

    r1773 r1780  
    105105                or gzip.exe on TAR.B/GZ archives.
    106106  06 Apr 14 GKY Removed all BZ/GZ checks
     107  28 Jun 14 GKY Fix errors identified with CPPCheck; Fix retry to create workdir code
    107108
    108109***********************************************************************/
     
    24892490                for (z = 0; z < 99; z++) {
    24902491                  was++;
    2491                   sprintf(p, "%03x");
     2492                  sprintf(p, "%03x", was);
    24922493                  rc = DosCreateDir(dcd->workdir, 0);
    24932494                  if (!rc || rc != ERROR_ACCESS_DENIED)
     
    24962497              }
    24972498            }
    2498             if (rc)
     2499            if (rc) {
    24992500              PostMsg(hwnd, WM_CLOSE, MPVOID, MPVOID);
    2500             return 0;
     2501              return 0;
     2502            }
    25012503          }
    25022504        }
Note: See TracChangeset for help on using the changeset viewer.