Ignore:
Timestamp:
Apr 15, 2000, 12:35:29 AM (25 years ago)
Author:
sandervl
Message:

GetFileAttributes, pe loader & command line fixes

File:
1 edited

Legend:

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

    r2802 r3375  
    1 /* $Id: winexelx.cpp,v 1.5 2000-02-16 14:22:11 sandervl Exp $ */
     1/* $Id: winexelx.cpp,v 1.6 2000-04-14 22:35:27 sandervl Exp $ */
    22
    33/*
     
    6666
    6767  if(winexe) {
    68         winexe->setCommandLine(ppib->pib_pchcmd);
     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);
    6978        winexe->setEntryPoint((ULONG)EntryPoint);
    7079        winexe->start();
Note: See TracChangeset for help on using the changeset viewer.