Changeset 841 for trunk/dll/common.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/common.c

    r809 r841  
    2727#define INCL_WIN
    2828#define INCL_GPI
     29#define INCL_LONGLONG
    2930#include <os2.h>
    3031
     
    272273
    273274      BYTE parm[4] = { "CD01" };
    274       ULONG dlen, plen;
     275      ULONGLONG dlen;
     276      ULONG plen;
    275277      HFILE hfile;
    276278      APIRET rc;
    277279
    278280      dv[2] = 0;
    279       rc = DosOpen(dv,
    280                    &hfile,
    281                    &dlen,
    282                    0,
    283                    0,
    284                    OPEN_ACTION_OPEN_IF_EXISTS |
    285                    OPEN_ACTION_CREATE_IF_NEW,
    286                    OPEN_FLAGS_DASD |
    287                    OPEN_FLAGS_FAIL_ON_ERROR | OPEN_SHARE_DENYNONE, NULL);
     281      rc = DosOpenL(dv,
     282                    &hfile,
     283                    &dlen,
     284                    0,
     285                    0,
     286                    OPEN_ACTION_OPEN_IF_EXISTS |
     287                    OPEN_ACTION_CREATE_IF_NEW,
     288                    OPEN_FLAGS_DASD |
     289                    OPEN_FLAGS_FAIL_ON_ERROR | OPEN_SHARE_DENYNONE, NULL);
    288290      if (rc)
    289         Dos_Error(MB_CANCEL, rc, hwnd, pszSrcFile, __LINE__, "DosOpen");
     291        Dos_Error(MB_CANCEL, rc, hwnd, pszSrcFile, __LINE__, "DosOpenL");
    290292      else {
    291293        dlen = 0;
Note: See TracChangeset for help on using the changeset viewer.