Changeset 1398 for trunk/dll/shadow.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/shadow.c

    r1227 r1398  
    3838#include "wrappers.h"                   // xmalloc
    3939#include "fortify.h"
     40#include "init.h"                       // Data declaration(s)
    4041
    4142#pragma data_seg(DATA1)
     
    9192    return obj;
    9293  BldFullPathName(s, path, objtitle);
    93   // sprintf(s, "%s%s%s", (path) ? path : "", (path) ? "\\" : "", objtitle);
    9494  p = strrchr(objtitle, '.');
    9595  if (p) {
    96     if (!stricmp(p, ".ICO"))
     96    if (!stricmp(p, PCSZ_DOTICO))
    9797      p = type[1];
    98     else if (!stricmp(p, ".BMP"))
     98    else if (!stricmp(p, PCSZ_DOTBMP))
    9999      p = type[2];
    100100    else
     
    154154
    155155      BldFullPathName(temp, path, objtitle);
    156       // sprintf(temp,
    157       //              "%s%s%s", (path) ? path : "", (path) ? "\\" : "", objtitle);
    158156      p = strrchr(temp, '.');
    159157      if (p) {
    160158        *p = 0;
    161         strcat(p, ".ICO");
     159        strcat(p, PCSZ_DOTICO);
    162160        if (IsFile(temp) == 1)
    163161          sprintf(&s[strlen(s)], ";ICONFILE=%s", temp);
     
    229227        p = strrchr(list[x], '.');
    230228        if (p) {
    231           if (!stricmp(p, ".BAT") || !stricmp(p, ".CMD"))
     229          if (!stricmp(p, PCSZ_DOTBAT) || !stricmp(p, PCSZ_DOTCMD) ||
     230              !stricmp(p, PCSZ_DOTBTM))
    232231            apt |= FAPPTYP_BOUND;
    233232        }
Note: See TracChangeset for help on using the changeset viewer.