Changeset 1247 for trunk/dll/command.c


Ignore:
Timestamp:
Oct 15, 2008, 3:44:29 PM (17 years ago)
Author:
Gregg Young
Message:

Fix issues with NormalizeCmdLine; it now uses searchapath to check for nonexe files in the path, it tries all 5 defined executible extensions when no exetension is provided, it closes dosfind, eliminates extra error message on failure to find extensionless file in commands, improved error message for extensionless file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/command.c

    r1221 r1247  
    2727  19 Jul 08 GKY Replace save_dir2(dir) with pFM2SaveDirectory and use BldFullPathName
    2828  24 Aug 08 GKY Warn full drive on save of .DAT file; prevent loss of existing file
     29  15 Oct 08 GKY Prevent asking to add %a on NormalizeCmdLine abort
    2930
    3031***********************************************************************/
     
    670671        memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1);
    671672        free(pszWorkBuf);
    672         if (!strchr(temp.pszCmdLine, '%')){
     673        if (!strchr(temp.pszCmdLine, '%') && !fCancelAction){
    673674          ret = saymsg(MB_YESNO,
    674675                       HWND_DESKTOP,
     
    775776        memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1);
    776777        free(pszWorkBuf);
    777         if (!strchr(temp.pszCmdLine, '%')){
     778        if (!strchr(temp.pszCmdLine, '%') && !fCancelAction){
    778779          ret = saymsg(MB_YESNO,
    779780                       HWND_DESKTOP,
     
    893894          break;
    894895        }
    895         if (!strchr(temp.pszCmdLine, '%')){
     896        if (!strchr(temp.pszCmdLine, '%') && !fCancelAction){
    896897          ret = saymsg(MB_YESNO,
    897898                       HWND_DESKTOP,
Note: See TracChangeset for help on using the changeset viewer.