Changeset 841 for trunk/dll/eas.c


Ignore:
Timestamp:
Sep 23, 2007, 6:27:51 PM (18 years ago)
Author:
Gregg Young
Message:

This implements large file support; The wrappers to allow WARP3 compatibility are not done so this will not run on Warp3or Warp 4 pre fixpack 12(?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/eas.c

    r827 r841  
    2727#define INCL_DOS
    2828#define INCL_DOSERRORS
     29#define INCL_LONGLONG
    2930#include <os2.h>
    3031
     
    11851186
    11861187  HOLDFEA *head = NULL, *info, *last = NULL;
    1187   FILESTATUS4 fsa4;
     1188  FILESTATUS4L fsa4;
    11881189  HFILE handle;
    11891190  ULONG action;
     
    11921193  if (!filename)
    11931194    return head;
    1194   if (ishandle || !DosOpen(filename, &handle, &action, 0, 0,
    1195                            OPEN_ACTION_FAIL_IF_NEW |
    1196                            OPEN_ACTION_OPEN_IF_EXISTS,
    1197                            OPEN_FLAGS_NOINHERIT |
    1198                            OPEN_SHARE_DENYREADWRITE |
    1199                            OPEN_ACCESS_READWRITE, (PEAOP2)0)) {
     1195  if (ishandle || !DosOpenL(filename, &handle, &action, 0, 0,
     1196                            OPEN_ACTION_FAIL_IF_NEW |
     1197                            OPEN_ACTION_OPEN_IF_EXISTS,
     1198                            OPEN_FLAGS_NOINHERIT |
     1199                            OPEN_SHARE_DENYREADWRITE |
     1200                            OPEN_ACCESS_READWRITE, (PEAOP2)0)) {
    12001201    if (ishandle)
    12011202      handle = *(HFILE *) filename;
    1202     if (!DosQueryFileInfo(handle, FIL_QUERYEASIZE, (PVOID)&fsa4,
     1203    if (!DosQueryFileInfo(handle, FIL_QUERYEASIZEL, (PVOID)&fsa4,
    12031204                          (ULONG) sizeof(fsa4)) &&
    12041205        fsa4.cbList > 4)
     
    12901291    //03 AUG 07 GKY This isn't an error it is for processing Readonly files
    12911292    /* try it without opening it */
    1292     if (!DosQueryPathInfo(filename, FIL_QUERYEASIZE, (PVOID) & fsa4,
     1293    if (!DosQueryPathInfo(filename, FIL_QUERYEASIZEL, (PVOID) & fsa4,
    12931294                          (ULONG) sizeof(fsa4)) &&
    12941295        fsa4.cbList > 4)
Note: See TracChangeset for help on using the changeset viewer.