Minor changes.
[reactos.git] / reactos / subsys / system / shell / shell.c
index 6b6cce6..9378ecb 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: shell.c,v 1.5 2001/05/01 23:08:17 chorns Exp $
+/* $Id: shell.c,v 1.7 2001/07/30 11:50:44 ea Exp $
  *
  * PROJECT    : ReactOS Operating System
  * DESCRIPTION: ReactOS' Native Shell
@@ -155,8 +155,10 @@ int ExecuteProcess(char* name, char* cmdline, BOOL detached)
    memset(&StartupInfo, 0, sizeof(StartupInfo));
    StartupInfo.cb = sizeof (STARTUPINFO);
    StartupInfo.lpTitle = name;
+   if( cmdline && *cmdline  )
+     *(cmdline-1) = ' ';  // fix command line so it is the FULL command, including exe name
    ret = CreateProcessA(fullname,
-                       cmdline,
+                       name,
                        NULL,
                        NULL,
                        FALSE,
@@ -173,12 +175,12 @@ int ExecuteProcess(char* name, char* cmdline, BOOL detached)
      {
        if (ret)
          {
-            debug_printf("%s detached:\n"
+            debug_printf("\"%s\" detached:\n"
                          "\thProcess = %08X\n"
                          "\thThread  = %08X\n"
                          "\tPID      = %d\n"
                          "\tTID      = %d\n\n",
-                         name,
+                         fullname,
                          ProcessInformation.hProcess,
                          ProcessInformation.hThread,
                          ProcessInformation.dwProcessId,
@@ -238,7 +240,7 @@ ExecuteKill(char * lpPid)
        DWORD   dwProcessId;
 
        dwProcessId = (DWORD) atol(lpPid);
-       debug_printf("dwProcessId %d\n",dwProcessId);
+       debug_printf("Killing PID %d...\n",dwProcessId);
        hProcess = OpenProcess(
                        PROCESS_TERMINATE,
                        FALSE,