Changeset 6325 for trunk/src


Ignore:
Timestamp:
Jul 14, 2001, 9:44:40 AM (24 years ago)
Author:
sandervl
Message:

Fix for parsing cmd line consisting of directory with spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/peldr/pe.cpp

    r6248 r6325  
    1 /* $Id: pe.cpp,v 1.30 2001-07-08 11:00:48 sandervl Exp $ */
     1/* $Id: pe.cpp,v 1.31 2001-07-14 07:44:40 sandervl Exp $ */
    22
    33/*
     
    9393 PPIB   ppib;
    9494 char  *cmdline, *win32cmdline, *peoptions, *newcmdline;
    95  BOOL   fQuote = FALSE, fVioConsole, fIsNEExe;
     95 BOOL   fQuote = FALSE, fVioConsole, fIsNEExe, fEndOfCmdLine = FALSE;
    9696 int    nrTries = 1;
    9797
     
    133133                        }
    134134                        if(nrTries > 1 && *p == 0) {
    135                             pszErrorMsg = szFileNotFound;
    136                             goto failerror;
     135                            fEndOfCmdLine = TRUE;
    137136                        }
    138137                }
     
    163162                {
    164163                        nrTries++;
     164                        if(fEndOfCmdLine) {
     165                            pszErrorMsg = szFileNotFound;
     166                            goto failerror;
     167                        }
     168
    165169                        if(*win32cmdline != NULL && !fQuote) {
    166170                                goto tryagain;
Note: See TracChangeset for help on using the changeset viewer.