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

    r1413 r1544  
    131131    FILE *fp;
    132132    CHAR input[1024], *p;
    133 
    134     fp = _fsopen(filename, "r", SH_DENYNO);
     133    CHAR *moder = "r";
     134
     135    fp = xfsopen(filename, moder, SH_DENYNO, pszSrcFile, __LINE__, TRUE);
    135136    if (fp) {
    136137      while (!feof(fp)) {
     
    252253          ULONG pos;
    253254          LONG len;
    254           FILE *inputFile;
    255 
    256           if ((inputFile = _fsopen(pci->pszFileName, "rb", SH_DENYNO)) != NULL) {
     255          FILE *inputFile;
     256          CHAR *moderb = "rb";
     257
     258          if ((inputFile = xfsopen(pci->pszFileName, moderb, SH_DENYNO,
     259                                   pszSrcFile, __LINE__, TRUE)) != NULL) {
    257260            pos = ftell(inputFile);
    258261            while (!feof(inputFile)) {
     
    356359          LONG len;
    357360          FILE *inputFile;
    358 
    359           if ((inputFile = _fsopen(pci->pszFileName, "rb", SH_DENYNO)) != NULL) {
     361          CHAR *moderb = "rb";
     362
     363          if ((inputFile = xfsopen(pci->pszFileName, moderb, SH_DENYNO,
     364                                   pszSrcFile, __LINE__, TRUE)) != NULL) {
    360365            pos = ftell(inputFile);
    361366            while (!feof(inputFile)) {
Note: See TracChangeset for help on using the changeset viewer.