Changeset 1544 for trunk/dll/worker.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/worker.c

    r1498 r1544  
    378378                    break;
    379379                  }
    380                   in = _fsopen(wk->li->list[x], moder, SH_DENYWR);
     380                  in = xfsopen(wk->li->list[x], moder, SH_DENYWR, pszSrcFile, __LINE__, TRUE);
    381381                  if (!in) {
    382382                    if (saymsg(MB_ENTERCANCEL,
     
    388388                  }
    389389                  else {
    390                     out = _fsopen(wk->li->targetpath, modew, SH_DENYWR);
     390                    out = xfsopen(wk->li->targetpath, modew, SH_DENYWR,
     391                                  pszSrcFile, __LINE__, TRUE);
    391392                    if (out) {
    392393                      fseek(out, 0L, SEEK_END);
     
    11671168
    11681169                FILE *fp;
    1169                 CHAR szTempFile[CCHMAXPATH];
     1170                CHAR szTempFile[CCHMAXPATH];
     1171                CHAR *modew = "w";
    11701172
    11711173                BldFullPathName(szTempFile, pTmpDir, PCSZ_FM2PLAYTEMP);
    1172                 fp = xfopen(szTempFile, "w", pszSrcFile, __LINE__);
     1174                fp = xfopen(szTempFile, modew, pszSrcFile, __LINE__, FALSE);
    11731175                if (fp) {
    11741176                  fprintf(fp, "%s", ";AV/2-built FM2Play listfile\n");
Note: See TracChangeset for help on using the changeset viewer.