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

    r834 r888  
    419419                        info->cl,
    420420                        flags,
    421                         NULL, list, GetPString(IDS_EXECASSOCTITLETEXT));
     421                        NULL, list, GetPString(IDS_EXECASSOCTITLETEXT),
     422                        pszSrcFile, __LINE__);
    422423        if (rc != -1 && dieafter)
    423424          PostMsg((HWND) 0, WM_QUIT, MPVOID, MPVOID);
     
    613614    case ASS_FIND:
    614615      {
    615         CHAR filename[CCHMAXPATH + 9];
     616        CHAR filename[CCHMAXPATH + 9], szfilename[CCHMAXPATH + 9];
    616617
    617618        *filename = 0;
    618         if (insert_filename(hwnd, filename, 2, FALSE) && *filename) {
    619           strcat(filename, " %a");
    620           WinSetDlgItemText(hwnd, ASS_CL, filename);
     619        if (insert_filename(hwnd, filename, 2, FALSE) && *filename) {
     620          BldQuotedFileName(szfilename, filename);
     621          strcat(szfilename, " %a");
     622          WinSetDlgItemText(hwnd, ASS_CL, szfilename);
    621623        }
    622624      }
Note: See TracChangeset for help on using the changeset viewer.