-/* $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
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,
{
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,
DWORD dwProcessId;
dwProcessId = (DWORD) atol(lpPid);
- debug_printf("dwProcessId %d\n",dwProcessId);
+ debug_printf("Killing PID %d...\n",dwProcessId);
hProcess = OpenProcess(
PROCESS_TERMINATE,
FALSE,