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

    r1498 r1544  
    4444#include "strips.h"                     // bstrip
    4545#include "info.h"                       // driveflags
     46#include "wrappers.h"                   // xfopen
     47
     48static PSZ pszSrcFile = __FILE__;
    4649
    4750MRESULT EXPENTRY RenameProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
     
    161164                                     GetPString(IDS_FILETEXT));
    162165        {
    163           FILE *fp = NULL;
     166          FILE *fp = NULL;
     167          CHAR *modeab = "ab";
    164168          if (~sourceexists & 2)
    165             fp = fopen(mv->source, "ab");
     169            fp = xfopen(mv->source, modeab, pszSrcFile, __LINE__, TRUE);
    166170          if ((!fp && ~sourceexists & 2) || !sourceexists)
    167171            strcpy(s, GetPString(IDS_CANTACCESSSOURCETEXT));
Note: See TracChangeset for help on using the changeset viewer.