Changeset 630 for trunk/dll/worker.c


Ignore:
Timestamp:
Apr 23, 2007, 12:07:06 AM (18 years ago)
Author:
Gregg Young
Message:

Improved fix of utility app path problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/worker.c

    r627 r630  
    10311031            {
    10321032              register INT x;
    1033               register ULONG total = strlen("FM2PLAY.EXE ");
     1033              register ULONG total;
    10341034              CHAR fbuf[CCHMAXPATH];
    10351035
     
    10371037                                SEARCH_CUR_DIRECTORY,
    10381038                                "PATH", "FM2PLAY.EXE", fbuf, CCHMAXPATH - 1))
    1039                 total += strlen("UTILS\\");
     1039                total += strlen("..\\FM2UTILS\\");
     1040              else
     1041                total = strlen(fbuf);
    10401042              for (x = 0; wk->li->list[x]; x++)
    10411043                total += (strlen(wk->li->list[x]) + 1 +
     
    10521054                  fprintf(fp, ";end\n");
    10531055                  fclose(fp);
    1054                   if (DosSearchPath(SEARCH_IGNORENETERRS | SEARCH_ENVIRONMENT |
    1055                                  SEARCH_CUR_DIRECTORY,
    1056                                  "PATH", "FM2PLAY.EXE", fbuf, CCHMAXPATH - 1)){
    1057                     runemf2(SEPARATE | WINDOWED,
    1058                             HWND_DESKTOP,
    1059                             NULL,
    1060                             NULL,
    1061                             "%sFM2PLAY.EXE /#$FM2PLAY.$$$",
    1062                             "UTILS\\");
    1063                   }
    1064                    else {
    1065                      runemf2(SEPARATE | WINDOWED,
    1066                              HWND_DESKTOP,
    1067                              NULL,
    1068                              NULL,
    1069                              "FM2PLAY.EXE /#$FM2PLAY.$$$");
    1070                   }
     1056                  RunFM2Util("FM2PLAY.EXE", "/#$FM2PLAY.$$$");
    10711057                  break;
    10721058                }
Note: See TracChangeset for help on using the changeset viewer.