Changeset 1497 for trunk/dll/systemf.c


Ignore:
Timestamp:
Jan 8, 2010, 5:39:40 AM (16 years ago)
Author:
Gregg Young
Message:

Update ExecOnList to pass environment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/systemf.c

    r1492 r1497  
    147147 */
    148148
    149 int ExecOnList(HWND hwnd, char *command, int flags, char *tpath,
     149int ExecOnList(HWND hwnd, PSZ command, int flags, PSZ tpath,  PSZ environment,
    150150               PSZ *list, PCSZ prompt, PCSZ pszCallingFile, UINT uiLineNumber)
    151151{
     
    648648  {
    649649    EXECARGS ex;
    650     ULONG size;
     650    //ULONG size;
    651651    int ret;
    652652
    653653    memset(&ex, 0, sizeof(EXECARGS));
    654     size = sizeof(ex.environment) - 1;
    655     PrfQueryProfileData(fmprof, FM3Str, command, ex.environment, &size);
     654    //size = sizeof(ex.environment) - 1;
     655    //PrfQueryProfileData(fmprof, FM3Str, command, ex.environment, &size);
    656656    if (flags & PROMPT) {
    657657      /* allow editing command line */
     
    671671      ex.flags = flags;
    672672    ex.flags &= (~PROMPT);
     673    //DbgMsg(pszSrcFile, __LINE__, "Inserted %s", environment);
    673674    ret = runemf2(ex.flags, hwnd, pszCallingFile, uiLineNumber, path,
    674                    (*ex.environment) ? ex.environment : NULL,
     675                   environment ? environment : NULL,
    675676                   "%s", commandline);
    676677    free(commandline);
Note: See TracChangeset for help on using the changeset viewer.