Changeset 4239 for trunk/src


Ignore:
Timestamp:
Sep 12, 2000, 6:40:57 AM (25 years ago)
Author:
bird
Message:

When invoking PE.EXE the executable name should be in quotes in case the
should be spaces in the filename or path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/ldr/myldrOpen.cpp

    r4164 r4239  
    1 /* $Id: myldrOpen.cpp,v 1.11 2000-09-02 21:08:09 bird Exp $
     1/* $Id: myldrOpen.cpp,v 1.12 2000-09-12 04:40:57 bird Exp $
    22 *
    33 * myldrOpen - ldrOpen.
     
    293293                         * If not tkExecPgm we can't do anything about parameters (and there is
    294294                         * probably nothing to do either).
     295                         * We'll always enclose the PE executable name in quotes.
    295296                         */
    296297                        kprintf(("myldrOpen-%d: pe.exe - %s\n", cNesting, u1.pach));
    297298                        if (isLdrStateExecPgm() && fTkExecPgm)
    298299                        {
    299                             rc = AddArgsToFront(2, ldrpFileNameBuf, achTkExecPgmFilename);
     300                            u1.pach[0] = '"';
     301                            strcpy(&u1.pach[1], achTkExecPgmFilename);
     302                            u1.pach[strlen(u1.pach)] = '\0';
     303                            rc = AddArgsToFront(2, ldrpFileNameBuf, u1.pach);
    300304                            if (rc == NO_ERROR)
    301305                            {
     
    419423                     * the CLASSPATH env.var. or generate the default class path (what ever that is).
    420424                     *
     425                     * TODO: spaces in class path.
    421426                     */
    422427                    if (isLdrStateExecPgm() && fTkExecPgm)
     
    534539         *      - And we're either in QAppType or ExecPgm state.
    535540         *      - And that a bang (!) is the first char after the hash (ignoring blanks).
     541         *
     542         * FIXME: spaces script name.
    536543         */
    537544        if (*u1.pach == '#'
     
    667674         *          .RX and .REX are known to be pure REXX scripts.
    668675         *          While .CMD has to invoked used the commandline OS2_SHELL or COMSPEC variable.
     676         *
     677         * FIXME: spaces script name.
    669678         */
    670679        psz2 = pszFilename + strlen(pszFilename) - 1;
Note: See TracChangeset for help on using the changeset viewer.