Ignore:
Timestamp:
Aug 23, 1999, 12:11:23 AM (26 years ago)
Author:
sandervl
Message:

Bugfixes + def files changes

File:
1 edited

Legend:

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

    r622 r634  
    1 /* $Id: wprocess.cpp,v 1.25 1999-08-22 14:24:35 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.26 1999-08-22 22:11:23 sandervl Exp $ */
    22
    33/*
     
    329329  dprintf(("KERNEL32:  ExitProcess FS = %x\n", GetFS()));
    330330
     331  SetOS2ExceptionChain(-1);
     332
    331333  //avoid crashes since win32 & OS/2 exception handler aren't identical
    332334  //(terminate process generates two exceptions)
     
    674676
    675677    if(O32_CreateProcess(lpszImageName, lpszCommandLine, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) == TRUE)
    676     return(TRUE);
     678        return(TRUE);
    677679
    678680    //probably a win32 exe, so run it in the pe loader
    679681    if(lpszImageName) {
    680      if(lpszCommandLine) {
    681         cmdline = (char *)malloc(strlen(lpszImageName)+strlen(lpszCommandLine) + 16);
    682         sprintf(cmdline, "%s %s", lpszImageName, lpszCommandLine);
    683         fAllocStr = TRUE;
    684      }
    685      else   cmdline = (char *)lpszImageName;
     682         if(lpszCommandLine) {
     683                cmdline = (char *)malloc(strlen(lpszImageName)+strlen(lpszCommandLine) + 16);
     684                sprintf(cmdline, "%s %s", lpszImageName, lpszCommandLine);
     685                fAllocStr = TRUE;
     686         }
     687         else   cmdline = (char *)lpszImageName;
    686688    }
    687689    else cmdline = (char *)lpszCommandLine;
Note: See TracChangeset for help on using the changeset viewer.