Sorry for the debug messages.

svn path=/trunk/; revision=17839
This commit is contained in:
Alex Ionescu 2005-09-13 19:34:48 +00:00
parent 7a5244c46d
commit 38b63156fa

View file

@ -256,13 +256,13 @@ LdrpInit(PCONTEXT Context,
SYSTEM_BASIC_INFORMATION SystemInformation; SYSTEM_BASIC_INFORMATION SystemInformation;
NTSTATUS Status; NTSTATUS Status;
DPRINT1("LdrpInit()\n"); DPRINT("LdrpInit()\n");
if (NtCurrentPeb()->Ldr == NULL || NtCurrentPeb()->Ldr->Initialized == FALSE) if (NtCurrentPeb()->Ldr == NULL || NtCurrentPeb()->Ldr->Initialized == FALSE)
{ {
Peb = (PPEB)(PEB_BASE); Peb = (PPEB)(PEB_BASE);
DPRINT1("Peb %x\n", Peb); DPRINT("Peb %x\n", Peb);
ImageBase = Peb->ImageBaseAddress; ImageBase = Peb->ImageBaseAddress;
DPRINT1("ImageBase %x\n", ImageBase); DPRINT("ImageBase %x\n", ImageBase);
if (ImageBase <= (PVOID)0x1000) if (ImageBase <= (PVOID)0x1000)
{ {
DPRINT("ImageBase is null\n"); DPRINT("ImageBase is null\n");
@ -271,7 +271,7 @@ LdrpInit(PCONTEXT Context,
/* If MZ header exists */ /* If MZ header exists */
PEDosHeader = (PIMAGE_DOS_HEADER) ImageBase; PEDosHeader = (PIMAGE_DOS_HEADER) ImageBase;
DPRINT1("PEDosHeader %x\n", PEDosHeader); DPRINT("PEDosHeader %x\n", PEDosHeader);
if (PEDosHeader->e_magic != IMAGE_DOS_SIGNATURE || if (PEDosHeader->e_magic != IMAGE_DOS_SIGNATURE ||
PEDosHeader->e_lfanew == 0L || PEDosHeader->e_lfanew == 0L ||
@ -294,12 +294,12 @@ LdrpInit(PCONTEXT Context,
NTHeaders = (PIMAGE_NT_HEADERS)((ULONG_PTR)ImageBase + PEDosHeader->e_lfanew); NTHeaders = (PIMAGE_NT_HEADERS)((ULONG_PTR)ImageBase + PEDosHeader->e_lfanew);
/* Get number of processors */ /* Get number of processors */
DPRINT1("Here\n"); DPRINT("Here\n");
Status = ZwQuerySystemInformation(SystemBasicInformation, Status = ZwQuerySystemInformation(SystemBasicInformation,
&SystemInformation, &SystemInformation,
sizeof(SYSTEM_BASIC_INFORMATION), sizeof(SYSTEM_BASIC_INFORMATION),
NULL); NULL);
DPRINT1("Here2\n"); DPRINT("Here2\n");
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
ZwTerminateProcess(NtCurrentProcess(), Status); ZwTerminateProcess(NtCurrentProcess(), Status);