dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] pnet/engine ilrun.c,1.41,1.42


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnet/engine ilrun.c,1.41,1.42
Date: Fri, 10 Oct 2003 01:25:01 +0000

Update of /cvsroot/dotgnu-pnet/pnet/engine
In directory subversions:/tmp/cvs-serv9286/engine

Modified Files:
        ilrun.c 
Log Message:


Use an alternative existence check for the IL binary to handle ".exe"
extensions under Windows.


Index: ilrun.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/ilrun.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** ilrun.c     25 Sep 2003 07:27:22 -0000      1.41
--- ilrun.c     10 Oct 2003 01:24:58 -0000      1.42
***************
*** 159,162 ****
--- 159,163 ----
        int registerMode = 0;
        char *ilprogram;
+       char *newExePath;
        int ilprogramLen;
        ILExecValue execValue;
***************
*** 342,348 ****
        ilprogram = argv[1];
        ilprogramLen = strlen(ilprogram);
!       if(!ILFileExists(ilprogram, (char **)0) &&
!          (ilprogramLen < 4 ||
!           ILStrICmp(ilprogram + ilprogramLen - 4, ".exe") != 0))
        {
                ilprogram = (char *)ILMalloc(ilprogramLen + 5);
--- 343,355 ----
        ilprogram = argv[1];
        ilprogramLen = strlen(ilprogram);
!       if(ILFileExists(ilprogram, &newExePath))
!       {
!               if(newExePath)
!               {
!                       ilprogram = newExePath;
!               }
!       }
!       else if(ilprogramLen < 4 ||
!               ILStrICmp(ilprogram + ilprogramLen - 4, ".exe") != 0)
        {
                ilprogram = (char *)ILMalloc(ilprogramLen + 5);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]