From 3e159aa702fb9acdd81538738ba2bde5c7599e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sun, 18 May 2014 23:17:25 +0000 Subject: [PATCH] [KERNEL32]: Remove temporary DPRINTs and fix comments. svn path=/trunk/; revision=63364 --- reactos/dll/win32/kernel32/client/vdm.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/reactos/dll/win32/kernel32/client/vdm.c b/reactos/dll/win32/kernel32/client/vdm.c index cb2ac243469..8b50319491f 100644 --- a/reactos/dll/win32/kernel32/client/vdm.c +++ b/reactos/dll/win32/kernel32/client/vdm.c @@ -99,8 +99,6 @@ BaseCheckVDM(IN ULONG BinaryType, return STATUS_INVALID_PARAMETER; } - DPRINT1("Before: ApplicationName = '%S' ; CommandLine = '%S'\n", ApplicationName, CommandLine); - /* Trim leading whitespace from ApplicationName */ while (*ApplicationName == L' ' || *ApplicationName == L'\t') ++ApplicationName; @@ -164,7 +162,6 @@ BaseCheckVDM(IN ULONG BinaryType, * suppose that the first token corresponds to an application name and * we skip it. Care should be taken when quotes are present in this token. */ - if (*CommandLine) { /* The first part of CommandLine should be the ApplicationName... */ @@ -206,8 +203,6 @@ BaseCheckVDM(IN ULONG BinaryType, while (*CommandLine == L' ' || *CommandLine == L'\t') ++CommandLine; - DPRINT1("After: ApplicationName = '%S' ; CommandLine = '%S'\n", ApplicationName, CommandLine); - /* Get the current directory */ if (CurrentDirectory == NULL) { @@ -290,7 +285,7 @@ BaseCheckVDM(IN ULONG BinaryType, } /* Allocate memory for the ANSI strings */ - // We need to add the two newline characters '\r\n' to the command line + // We need to add the newline characters '\r\n' to the command line AnsiCmdLine = (PCHAR)RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, CheckVdm->CmdLen + 2); AnsiAppName = (PCHAR)RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, CheckVdm->AppLen); AnsiCurDirectory = (PCHAR)RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, CheckVdm->CurDirectoryLen); @@ -324,7 +319,7 @@ BaseCheckVDM(IN ULONG BinaryType, CheckVdm->CmdLen, NULL, NULL); - /* Add a needed newline '\r\n' and NULL-terminate */ + /* Add the needed newline and NULL-terminate */ CheckVdm->CmdLen--; // Rewind back to the NULL character AnsiCmdLine[CheckVdm->CmdLen++] = '\r'; AnsiCmdLine[CheckVdm->CmdLen++] = '\n';