Changeset 888 for trunk/dll/seeall.c


Ignore:
Timestamp:
Dec 22, 2007, 11:02:11 PM (18 years ago)
Author:
Gregg Young
Message:

runemf2 now quotes executable strings if needed (Ticket 180); it also reports where it was called from on errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/seeall.c

    r872 r888  
    466466          while (list[x]) {
    467467            FILESTATUS3 fsa;
    468             // BOOL spaces;
    469             // if (needs_quoting(list[x])) {
    470             //   spaces = TRUE;
    471             //   strcat(szBuffer, "\"");
    472             // }
    473             // else
    474             //   spaces = FALSE;
    475             // strcat(szBuffer, list[x]);
    476468            memset(&fsa, 0, sizeof(fsa));
    477469            DosError(FERR_DISABLEHARDERR);
     
    480472              BldQuotedFullPathName(szBuffer + strlen(szBuffer),
    481473                                    list[x], "*");
    482               // if (szBuffer[strlen(szBuffer) - 1] != '\\')
    483               //        strcat(szBuffer, "\\");
    484               // strcat(szBuffer, "*");
    485474            }
    486475            else
    487476              BldQuotedFileName(szBuffer + strlen(szBuffer), list[x]);
    488             // if (spaces)
    489             //   strcat(szBuffer, "\"");
    490477            x++;
    491478            if (!list[x] || strlen(szBuffer) + strlen(list[x]) + 5 > 1024) {
    492479              runemf2(SEPARATE | WINDOWED | WAIT |
    493480                      (fArcStuffVisible ? 0 : (BACKGROUND | MINIMIZED)),
    494                       HWND_DESKTOP, NULL, NULL,
    495                       "%s", szBuffer);
     481                      HWND_DESKTOP, pszSrcFile, __LINE__,
     482                      NULL, NULL, "%s", szBuffer);
    496483              DosSleep(1);              // Let archiver get started
    497484              *p = 0;
     
    831818            runemf2(SEPARATE | WINDOWED |
    832819                    (fArcStuffVisible ? 0 : (BACKGROUND | MINIMIZED)),
    833                     HWND_DESKTOP, ex.extractdir, NULL,
     820                    HWND_DESKTOP, pszSrcFile, __LINE__,
     821                    ex.extractdir, NULL,
    834822                    "%s %s %s%s%s",
    835823                    ex.command,
Note: See TracChangeset for help on using the changeset viewer.