/* PSDK/NDK Headers */
#define WIN32_NO_STATUS
-#include <stdio.h>
-//#include <windows.h>
#define NTOS_MODE_USER
-#include <ndk/psfuncs.h>
+// #include <ndk/psfuncs.h>
#include <ndk/rtlfuncs.h>
NTSTATUS
while (*CurrentChar)
{
- while(*CurrentChar++);
+ while (*CurrentChar++);
}
- /* double nullterm at end */
+ /* Double NULL-termination at end */
CurrentChar++;
usOut->Buffer = wsIn;
}
}
-
-
VOID
-WINAPI
+NTAPI
NtProcessStartup(PPEB Peb)
{
NTSTATUS Status;
ASSERT(ProcessParameters);
/* Allocate memory for the argument list, enough for 512 tokens */
- //FIXME: what if 512 is not enough????
+ // FIXME: what if 512 is not enough????
ArgumentList = RtlAllocateHeap(RtlGetProcessHeap(), 0, 512 * sizeof(PCHAR));
if (!ArgumentList)
{
/* Start parsing */
while (*Source)
{
- /* Skip the white space. */
+ /* Skip the white space */
while (*Source && *Source <= ' ') Source++;
/* Copy until the next white space is reached */
if (ProcessParameters->Environment)
{
EnvironmentStringToUnicodeString(ProcessParameters->Environment, &UnicodeEnvironment);
- Status = RtlUnicodeStringToAnsiString (& AnsiEnvironment, & UnicodeEnvironment, TRUE);
+ Status = RtlUnicodeStringToAnsiString (&AnsiEnvironment, &UnicodeEnvironment, TRUE);
if (!NT_SUCCESS(Status))
{
DPRINT1("ERR: no mem(guess)\n");