Changeset 1637 for trunk/src


Ignore:
Timestamp:
Nov 16, 2004, 5:59:25 AM (21 years ago)
Author:
bird
Message:

Fixed EA / open write problem.

File:
1 edited

Legend:

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

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r1636 r1637  
    9696#endif
    9797        rc = DosQueryPathInfo((PCSZ)pszNativePath, FIL_QUERYEASIZE, &info, sizeof(info.fsts4));
     98    /* Now, if the file is open in write mode, we cannot even get the EA size. stupid. */
     99    if (rc == ERROR_SHARING_VIOLATION)
     100    {
     101#if OFF_MAX > LONG_MAX
     102        if (__libc_gpfnDosOpenL)
     103        {
     104            rc = DosQueryPathInfo((PCSZ)pszNativePath, FIL_STANDARDL, &info, sizeof(info.fsts4L) - sizeof(info.fsts4L.cbList));
     105            fLarge = 1;
     106        }
     107        else
     108#endif
     109            rc = DosQueryPathInfo((PCSZ)pszNativePath, FIL_STANDARD, &info, sizeof(info.fsts4) - sizeof(info.fsts4.cbList));
     110        info.fsts4L.cbList = 0;
     111    }
    98112    FS_RESTORE();
    99113    if (rc)
Note: See TracChangeset for help on using the changeset viewer.