Fix compilation.

svn path=/trunk/; revision=67506
This commit is contained in:
Hermès Bélusca-Maïto 2015-05-02 01:26:42 +00:00
parent 0345f7203f
commit dc0c0c695b
2 changed files with 2 additions and 2 deletions

View file

@ -260,7 +260,7 @@ Command:
DPRINT1("Starting '%s' ('%.*s')...\n",
AppName,
CommandInfo.CmdLen >= 2 ? CommandInfo.CmdLen - 2 /* Display the command line without the terminating 0d 0a */
: CommandInfo.CmdLen
: CommandInfo.CmdLen,
CmdLine);
Result = DosStartProcess(AppName, CmdLine, Env);
if (Result != ERROR_SUCCESS)

View file

@ -633,7 +633,7 @@ WORD DosCreateProcess(LPCSTR ProgramName,
*/
CmdLineSize = min(*(PBYTE)FAR_POINTER(Parameters->CommandLine), DOS_CMDLINE_LENGTH);
RtlCopyMemory(CmdLine,
FAR_POINTER(Parameters->CommandLine) + 1,
(LPSTR)FAR_POINTER(Parameters->CommandLine) + 1,
CmdLineSize);
/* NULL-terminate it */
CmdLine[CmdLineSize] = '\0';