Changeset 1544 for trunk/dll/viewer.c


Ignore:
Timestamp:
Sep 30, 2010, 3:00:59 PM (15 years ago)
Author:
Gregg Young
Message:

Changes to fopen and _fsopen to allow FM2 to be loaded in high memory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/viewer.c

    r1505 r1544  
    910910        {
    911911          /* zero file length instead of unlink (protects EAs from loss) */
    912           FILE *fp;
    913 
    914           fp = fopen(vw->exportfilename, "r+"); //, pszSrcFile, __LINE__);
     912          FILE *fp;
     913          CHAR *moder = "r+";
     914
     915          fp = xfopen(vw->exportfilename, moder, pszSrcFile, __LINE__, TRUE);
    915916          if (fp) {
    916917            oldsize = filelength(fileno(fp));
     
    923924                           vw->ExpandTabs,
    924925                           vw->fStripTrailLines, vw->fStripTrail)) {
    925           FILE *fp;
     926          FILE *fp;
     927          CHAR *moder = "r+";
    926928
    927929          Runtime_Error(pszSrcFile, __LINE__, "MLEexportfile");
    928           fp = xfopen(vw->exportfilename, "r+", pszSrcFile, __LINE__);
     930          fp = xfopen(vw->exportfilename, moder, pszSrcFile, __LINE__, FALSE);
    929931          if (fp) {
    930932            DosSetFileSize(fileno(fp), oldsize);
Note: See TracChangeset for help on using the changeset viewer.