Changeset 1398 for trunk/dll/avv.c


Ignore:
Timestamp:
Feb 21, 2009, 6:43:00 PM (16 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/avv.c

    r1395 r1398  
    243243           HWND_DESKTOP,
    244244           GetPString(IDS_NOTETEXT), GetPString(IDS_SAVEARCBB2TEXT));
    245     archiverbb2 = ARCHIVERBB2;
     245    archiverbb2 = (PSZ) PCSZ_ARCHIVERBB2;
    246246  }
    247247  /* Check space on drive*/
     
    251251  /* save a backup */
    252252  psz = strrchr(archiverbb2, '.');
    253   if (psz && !stricmp(psz, ".BB2")) {
     253  if (psz && !stricmp(psz, PCSZ_DOTBB2)) {
    254254    strcpy(psz, ".BAK");
    255255    DosDelete(archiverbb2);
    256256    strcpy(sz, archiverbb2);
    257     strcpy(psz, ".BB2");
     257    strcpy(psz, PCSZ_DOTBB2);
    258258    DosMove(archiverbb2, sz);
    259259    fpOld = fopen(sz, "r");             // OK for file not to exist
     
    270270    fprintf(fpNew,
    271271            ";\n; %s file written by FM/2 v%d.%02d on %u/%u/%u %u:%02u:%02u\n;\n",
    272             ARCHIVERBB2,
     272            PCSZ_ARCHIVERBB2,
    273273            VERMAJOR, VERMINOR,
    274274            tm->tm_mon + 1, tm->tm_mday, tm->tm_year + 1900,
     
    289289    else {
    290290      // Write default header
    291       fputs(ARCHIVERBB2, fpNew);
     291      fputs(PCSZ_ARCHIVERBB2, fpNew);
    292292    }
    293293    pat = arcsighead;
     
    915915          PSZ ab2;
    916916
    917           ab2 = searchpath(ARCHIVERBB2);        // Rewrite without alerting
     917          ab2 = searchpath(PCSZ_ARCHIVERBB2);   // Rewrite without alerting
    918918          rewrite_archiverbb2(ab2);
    919919        }
Note: See TracChangeset for help on using the changeset viewer.