Changeset 827 for trunk/dll/copyf.c


Ignore:
Timestamp:
Sep 2, 2007, 8:32:14 PM (18 years ago)
Author:
Steven Levine
Message:

Future proof xDosSetPathInfo
Clean up callers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/copyf.c

    r826 r827  
    1717  14 Jul 06 SHL Use Runtime_Error
    1818  20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat
    19   01 Sep 07 GKY Add xDosSetPathInfo to fix case where FS3 buffer crosses 64k boundry
     19  01 Sep 07 GKY Use xDosSetPathInfo to fix case where FS3 buffer crosses 64k boundry
    2020
    2121***********************************************************************/
     
    300300    eaop.oError = 0L;
    301301    DosError(FERR_DISABLEHARDERR);
    302     rc = xDosSetPathInfo(filename,
    303                         FIL_QUERYEASIZE,
    304                         (PVOID) & eaop, (ULONG) sizeof(EAOP2), DSPI_WRTTHRU);
     302    rc = xDosSetPathInfo(filename, FIL_QUERYEASIZE,
     303                         &eaop, sizeof(eaop), DSPI_WRTTHRU);
    305304    DosFreeMem(pfealist);
    306305    if (rc)
     
    314313  BOOL ret = FALSE;
    315314
    316   /* NOTE:  newname should be CCHMAXPATH chars long! */
     315  /* NOTE: newname should be CCHMAXPATH chars long! */
    317316
    318317  if (strchr(newname, '*') || strchr(newname, '?')) {
     
    375374
    376375          /* truncate directory name */
    377           /* create that directory   */
     376          /* create that directory */
    378377          /* update containers for name used */
    379378
     
    402401   *  -2:  source didn't exist
    403402   *  -3:  bad type
    404    *   anything else:  API return
     403   *   anything else: API return
    405404   */
    406405
     
    665664
    666665  DosError(FERR_DISABLEHARDERR);
    667   if (!DosQueryPathInfo(filename, FIL_STANDARD, &fsi, sizeof(FILESTATUS3))) {
     666  if (!DosQueryPathInfo(filename, FIL_STANDARD, &fsi, sizeof(fsi))) {
    668667    fsi.attrFile = 0;
    669668    DosError(FERR_DISABLEHARDERR);
    670     if (!xDosSetPathInfo(filename,
    671                         FIL_STANDARD, &fsi, sizeof(FILESTATUS3), 0L))
     669    if (!xDosSetPathInfo(filename, FIL_STANDARD, &fsi, sizeof(fsi), 0))
    672670      ret = 0;
    673671  }
     
    675673}
    676674
    677 INT wipeallf(CHAR * string, ...)
     675INT wipeallf(CHAR *string, ...)
    678676{
    679677  /* unlink everything from directory on down... */
Note: See TracChangeset for help on using the changeset viewer.