Changeset 888 for trunk/dll/mainwnd.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/mainwnd.c

    r877 r888  
    15921592                       WINDOWED | ((fKeepCmdLine) ?
    15931593                                   SEPARATEKEEP : SEPARATE),
    1594                        directory, list, NULL);
     1594                       directory, list, NULL, pszSrcFile, __LINE__);
    15951595            if (list)
    15961596              free(list);
     
    19601960          strcat(li->targetpath, " %a");
    19611961          ExecOnList(hwndMain,
    1962                      li->targetpath, PROMPT | WINDOWED, NULL, li->list, NULL);
     1962                     li->targetpath, PROMPT | WINDOWED, NULL, li->list, NULL,
     1963                     pszSrcFile, __LINE__);
    19631964          FreeList(li->list);
    19641965          li->list = NULL;
     
    42344235          CHAR szPath2[CCHMAXPATH];
    42354236          runemf2(SEPARATE,
    4236                   HWND_DESKTOP, NULL, NULL,
     4237                  HWND_DESKTOP, pszSrcFile, __LINE__,
     4238                  NULL, NULL,
    42374239                  "%s %s %s",
    42384240                  dircompare,
    42394241                  BldQuotedFileName(szPath1, wa.szCurrentPath1),
    42404242                  BldQuotedFileName(szPath2, wa.szCurrentPath2));
    4241           // CHAR d1[] = "\"";
    4242           // CHAR d2[] = "\"";
    4243           // if (!needs_quoting(wa.szCurrentPath1))
    4244           //   *d1 = 0;
    4245           // if (!needs_quoting(wa.szCurrentPath2))
    4246           //   *d2 = 0;
    4247           // runemf2(SEPARATE,
    4248           //      HWND_DESKTOP, NULL, NULL,
    4249           //      "%s %s%s%s %s%s%s",
    4250           //      dircompare,
    4251           //      d1, wa.szCurrentPath1, d1, d2, wa.szCurrentPath2, d2);
    42524243        }
    42534244      }
     
    46484639        type = SEPARATE | FULLSCREEN;
    46494640      }
    4650       runemf2(type, hwnd, path, NULL, "%s", env);
     4641      runemf2(type, hwnd, pszSrcFile, __LINE__,
     4642              path, NULL, "%s", env);
    46514643    }
    46524644    break;
Note: See TracChangeset for help on using the changeset viewer.