Changeset 4103 for branches/GRACE/src


Ignore:
Timestamp:
Aug 28, 2000, 1:31:45 PM (25 years ago)
Author:
bird
Message:

REXX fix: Check for extention too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GRACE/src/win32k/ldr/myldrOpen.cpp

    r4090 r4103  
    1 /* $Id: myldrOpen.cpp,v 1.10.4.6 2000-08-25 04:47:24 bird Exp $
     1/* $Id: myldrOpen.cpp,v 1.10.4.7 2000-08-28 11:31:45 bird Exp $
    22 *
    33 * myldrOpen - ldrOpen.
     
    572572         *      - And we're loading an EXE
    573573         *      - And we're either in QAppType or ExecPgm state.
    574          *      - Extention is currently ignored....
     574         *      - Extention:
    575575         *          .RX and .REX are known to be pure REXX scripts.
    576576         *          While .CMD has to invoked used the commandline OS2_SHELL or COMSPEC variable.
    577577         */
    578         if (*u1.pach == '/' && u1.pach[1] == '*'
     578        psz2 = pszFilename + strlen(pszFilename) - 1;
     579        while (psz2 > pszFilename && *psz2 != '.')
     580            psz2--;
     581        if (*psz2 == '.'
     582            && *u1.pach == '/' && u1.pach[1] == '*'
    579583            && isLdrStateLoadingEXE()
    580584            && (isLdrStateQAppType() || isLdrStateExecPgm())
     585            && (stricmp(psz2, ".RX") == 0 || stricmp(psz2, ".REX"))
    581586            )
    582587        {
Note: See TracChangeset for help on using the changeset viewer.