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

Command line string rewrite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/winexelx.cpp

    r3375 r4236  
    1 /* $Id: winexelx.cpp,v 1.6 2000-04-14 22:35:27 sandervl Exp $ */
     1/* $Id: winexelx.cpp,v 1.7 2000-09-12 04:29:58 bird Exp $ */
    22
    33/*
     
    6666
    6767  if(winexe) {
    68         char *cmdline;
    69         int   cmdlen = strlen(ppib->pib_pchcmd);
    70 
    71         cmdlen += strlen(ppib->pib_pchcmd+cmdlen+1);
    72         cmdline = (char *)malloc(cmdlen+2); //term. 0 + space
    73         strcpy(cmdline, ppib->pib_pchcmd);
    74         strcat(cmdline, " ");
    75         strcat(cmdline, ppib->pib_pchcmd+strlen(ppib->pib_pchcmd)+1);
    76         winexe->setCommandLine(cmdline);
    77         free(cmdline);
     68    InitCommandLine(FALSE);
    7869        winexe->setEntryPoint((ULONG)EntryPoint);
    7970        winexe->start();
     
    8879//******************************************************************************
    8980//******************************************************************************
    90 Win32LxExe::Win32LxExe(HINSTANCE hInstance, PVOID pResData) 
     81Win32LxExe::Win32LxExe(HINSTANCE hInstance, PVOID pResData)
    9182                 : Win32ImageBase(hInstance),
    9283                   Win32LxImage(hInstance, pResData),
Note: See TracChangeset for help on using the changeset viewer.