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

    r793 r841  
    1919#define INCL_DOS
    2020#define INCL_WIN
     21#define INCL_LONGLONG
    2122#include <os2.h>
    2223
     
    790791      if (!MLEgetreadonly(hwndMLE)) {
    791792
    792         LONG oldsize;
     793        LONGLONG oldsize;
    793794
    794795        if (!*vw->exportfilename ||
     
    808809          fp = xfopen(vw->exportfilename, "r+", pszSrcFile, __LINE__);
    809810          if (fp) {
    810             oldsize = filelength(fileno(fp));
    811             DosSetFileSize(fileno(fp), 0);
     811            oldsize = _filelengthi64(fileno(fp));
     812            DosSetFileSizeL(fileno(fp), 0);
    812813            fclose(fp);
    813814          }
     
    822823          fp = xfopen(vw->exportfilename, "r+", pszSrcFile, __LINE__);
    823824          if (fp) {
    824             DosSetFileSize(fileno(fp), oldsize);
     825            DosSetFileSizeL(fileno(fp), oldsize);
    825826            fclose(fp);
    826827          }
Note: See TracChangeset for help on using the changeset viewer.