Changeset 1585


Ignore:
Timestamp:
Nov 1, 2004, 2:59:07 AM (21 years ago)
Author:
bird
Message:

Fixed get size bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/sys/b_ioFileSizeSet.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1584 r1585  
    6767    } info;
    6868    int     rc;
    69     off_t   cbCur;
    7069#if OFF_MAX > LONG_MAX
    7170    if (__libc_gpfnDosOpenL)
    7271    {
    7372        rc = DosQueryFileInfo(hFile, FIL_STANDARDL, &info, sizeof(info.fsts3L));
    74         cbCur = info.fsts3L.cbFile;
     73        *pcb = info.fsts3L.cbFile;
    7574    }
    7675    else
     
    7877    {
    7978        rc = DosQueryFileInfo(hFile, FIL_STANDARD, &info, sizeof(info.fsts3));
    80         cbCur = info.fsts3.cbFile;
     79        *pcb = info.fsts3.cbFile;
    8180    }
    8281    return rc;
Note: See TracChangeset for help on using the changeset viewer.