Changeset 1438 for trunk/dll/objcnr.c


Ignore:
Timestamp:
Jun 28, 2009, 10:47:00 PM (16 years ago)
Author:
Gregg Young
Message:

Improved drivebar changes; Added AddBackslashToPath() to remove repeatative code. replaced "
" with PCSZ variable; ANY_OBJ added the DosAlloc... (experimental)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/objcnr.c

    r1402 r1438  
    2424  10 Dec 08 SHL Integrate exception handler support
    2525  08 Mar 09 GKY Additional strings move to PCSZs
     26  28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code.
    2627
    2728***********************************************************************/
     
    5657#include "fortify.h"
    5758#include "excputil.h"                   // xbeginthread
     59#include "pathutil.h"                   // AddBackslashToPath
    5860
    5961typedef struct
     
    100102    return;                             // Error already reported
    101103  strcpy(maskstr, filename);
    102   if (maskstr[strlen(maskstr) - 1] != '\\')
    103     strcat(maskstr, "\\");
     104  AddBackslashToPath(maskstr);
     105  //if (maskstr[strlen(maskstr) - 1] != '\\')
     106  //  strcat(maskstr, "\\");
    104107  endpath = &maskstr[strlen(maskstr)];
    105108  strcat(maskstr, "*");
Note: See TracChangeset for help on using the changeset viewer.