Changeset 1398 for trunk/dll/autoview.c


Ignore:
Timestamp:
Feb 21, 2009, 6:43:00 PM (17 years ago)
Author:
Gregg Young
Message:

Move embeded strings to PCSZ variables or string table; Eliminate Error2 functions Runtime_Error with NULL format string returns "No data" error. Change declares from PSZ to PCSZ in functions where the variable isn't changed. Added btm as an executable file type in several additional places. Use fProtectOnly to prevent attempt to execute Dos and Win programs on "Protect only" installs in several additional places.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/autoview.c

    r1397 r1398  
    6969
    7070static BOOL PutComments(HWND hwnd, CHAR * filename, CHAR * comments);
    71 static BOOL WriteEA(HWND hwnd, CHAR * filename, CHAR * eaname, USHORT type,
     71static BOOL WriteEA(HWND hwnd, CHAR * filename, PCSZ eaname, USHORT type,
    7272             CHAR * data);
    7373
     
    8787static CHAR currfile[CCHMAXPATH];
    8888
    89 BOOL WriteEA(HWND hwnd, CHAR * filename, CHAR * eaname, USHORT type,
     89BOOL WriteEA(HWND hwnd, CHAR * filename, PCSZ eaname, USHORT type,
    9090             CHAR * data)
    9191{
     
    255255      comments = NULL;
    256256  }
    257   return WriteEA(hwnd, filename, ".COMMENTS", EAT_MVMT, comments);
     257  return WriteEA(hwnd, filename, PCSZ_DOTCOMMENTS, EAT_MVMT, comments);
    258258}
    259259
     
    556556          if (pgealist) {
    557557            pgea = &pgealist->list[0];
    558             strcpy(pgea->szName, ".COMMENTS");
     558            strcpy(pgea->szName, PCSZ_DOTCOMMENTS);
    559559            pgea->cbName = strlen(pgea->szName);
    560560            pgea->oNextEntryOffset = 0L;
Note: See TracChangeset for help on using the changeset viewer.