mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 07:35:10 +00:00
[KERNEL32]: Remove temporary DPRINTs and fix comments.
svn path=/trunk/; revision=63364
This commit is contained in:
parent
3384092338
commit
3e159aa702
|
@ -99,8 +99,6 @@ BaseCheckVDM(IN ULONG BinaryType,
|
||||||
return STATUS_INVALID_PARAMETER;
|
return STATUS_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
DPRINT1("Before: ApplicationName = '%S' ; CommandLine = '%S'\n", ApplicationName, CommandLine);
|
|
||||||
|
|
||||||
/* Trim leading whitespace from ApplicationName */
|
/* Trim leading whitespace from ApplicationName */
|
||||||
while (*ApplicationName == L' ' || *ApplicationName == L'\t')
|
while (*ApplicationName == L' ' || *ApplicationName == L'\t')
|
||||||
++ApplicationName;
|
++ApplicationName;
|
||||||
|
@ -164,7 +162,6 @@ BaseCheckVDM(IN ULONG BinaryType,
|
||||||
* suppose that the first token corresponds to an application name and
|
* 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.
|
* we skip it. Care should be taken when quotes are present in this token.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (*CommandLine)
|
if (*CommandLine)
|
||||||
{
|
{
|
||||||
/* The first part of CommandLine should be the ApplicationName... */
|
/* The first part of CommandLine should be the ApplicationName... */
|
||||||
|
@ -206,8 +203,6 @@ BaseCheckVDM(IN ULONG BinaryType,
|
||||||
while (*CommandLine == L' ' || *CommandLine == L'\t')
|
while (*CommandLine == L' ' || *CommandLine == L'\t')
|
||||||
++CommandLine;
|
++CommandLine;
|
||||||
|
|
||||||
DPRINT1("After: ApplicationName = '%S' ; CommandLine = '%S'\n", ApplicationName, CommandLine);
|
|
||||||
|
|
||||||
/* Get the current directory */
|
/* Get the current directory */
|
||||||
if (CurrentDirectory == NULL)
|
if (CurrentDirectory == NULL)
|
||||||
{
|
{
|
||||||
|
@ -290,7 +285,7 @@ BaseCheckVDM(IN ULONG BinaryType,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Allocate memory for the ANSI strings */
|
/* 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);
|
AnsiCmdLine = (PCHAR)RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, CheckVdm->CmdLen + 2);
|
||||||
AnsiAppName = (PCHAR)RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, CheckVdm->AppLen);
|
AnsiAppName = (PCHAR)RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, CheckVdm->AppLen);
|
||||||
AnsiCurDirectory = (PCHAR)RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, CheckVdm->CurDirectoryLen);
|
AnsiCurDirectory = (PCHAR)RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, CheckVdm->CurDirectoryLen);
|
||||||
|
@ -324,7 +319,7 @@ BaseCheckVDM(IN ULONG BinaryType,
|
||||||
CheckVdm->CmdLen,
|
CheckVdm->CmdLen,
|
||||||
NULL,
|
NULL,
|
||||||
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
|
CheckVdm->CmdLen--; // Rewind back to the NULL character
|
||||||
AnsiCmdLine[CheckVdm->CmdLen++] = '\r';
|
AnsiCmdLine[CheckVdm->CmdLen++] = '\r';
|
||||||
AnsiCmdLine[CheckVdm->CmdLen++] = '\n';
|
AnsiCmdLine[CheckVdm->CmdLen++] = '\n';
|
||||||
|
|
Loading…
Reference in a new issue