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

    r838 r841  
    2323#define INCL_DOS
    2424#define INCL_WIN
     25#define INCL_LONGLONG
    2526#include <os2.h>
    2627
     
    432433            fseek(fp, 0, SEEK_SET);
    433434            if (WinQueryButtonCheckstate(hwnd, SAV_APPEND) == 0)
    434               DosSetFileSize((HFILE) fileno(fp), 0);
     435              DosSetFileSizeL((HFILE) fileno(fp), 0);
    435436            else
    436437              fseek(fp, 0, SEEK_END);
     
    711712        INT x = 0;
    712713        SHORT sSelect;
    713         FILEFINDBUF4 ffb4;
     714        FILEFINDBUF4L ffb4;
    714715        ULONG nm;
    715716        HDIR hdir;
     
    781782            fseek(fp, 0, SEEK_SET);
    782783            if (WinQueryButtonCheckstate(hwnd, SAV_APPEND) == 0)
    783               DosSetFileSize((HFILE) fileno(fp), 0);
     784              DosSetFileSizeL((HFILE) fileno(fp), 0);
    784785            else
    785786              fseek(fp, 0, SEEK_END);
     
    792793                                 FILE_READONLY | FILE_ARCHIVED |
    793794                                 FILE_HIDDEN | FILE_SYSTEM,
    794                                  &ffb4, sizeof(ffb4), &nm, FIL_QUERYEASIZE)) {
     795                                 &ffb4, sizeof(ffb4), &nm, FIL_QUERYEASIZEL)) {
    795796                /* load the object's Subject, if required */
    796797                if (ffb4.cbList > 4) {
Note: See TracChangeset for help on using the changeset viewer.