Changeset 1750 for trunk/dll/cmdline.c


Ignore:
Timestamp:
Mar 1, 2014, 2:55:57 PM (12 years ago)
Author:
John Small
Message:

Ticket #524: Made "searchapath" thread-safe. Function names and signatures were changed.

So calls to these functions, direct and indirect, had to be changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/cmdline.c

    r1749 r1750  
    437437          *p = 0;
    438438        if (IsFile(executable) == -1) {
    439           p = searchpath(executable);
    440           if (*p)
    441             strcpy(executable, p);
    442           else {
     439//        p = searchpath(executable);
     440//        if (*p)
     441          if (SearchPathForFile(PCSZ_PATH, executable, executable))     // jbs: OK to have same source and destination?
     442//          strcpy(executable, p);
     443//        else {
    443444            WinSetDlgItemText(hwnd,
    444445                              EXEC_WARNING2,
    445446                              (CHAR *) GetPString(IDS_CANTFINDFILETEXT));
    446447            break;
    447           }
     448//        }
    448449        }
    449450      }
Note: See TracChangeset for help on using the changeset viewer.