mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Sorry for the debug messages.
svn path=/trunk/; revision=17839
This commit is contained in:
parent
7a5244c46d
commit
38b63156fa
1 changed files with 6 additions and 6 deletions
|
@ -256,13 +256,13 @@ LdrpInit(PCONTEXT Context,
|
|||
SYSTEM_BASIC_INFORMATION SystemInformation;
|
||||
NTSTATUS Status;
|
||||
|
||||
DPRINT1("LdrpInit()\n");
|
||||
DPRINT("LdrpInit()\n");
|
||||
if (NtCurrentPeb()->Ldr == NULL || NtCurrentPeb()->Ldr->Initialized == FALSE)
|
||||
{
|
||||
Peb = (PPEB)(PEB_BASE);
|
||||
DPRINT1("Peb %x\n", Peb);
|
||||
DPRINT("Peb %x\n", Peb);
|
||||
ImageBase = Peb->ImageBaseAddress;
|
||||
DPRINT1("ImageBase %x\n", ImageBase);
|
||||
DPRINT("ImageBase %x\n", ImageBase);
|
||||
if (ImageBase <= (PVOID)0x1000)
|
||||
{
|
||||
DPRINT("ImageBase is null\n");
|
||||
|
@ -271,7 +271,7 @@ LdrpInit(PCONTEXT Context,
|
|||
|
||||
/* If MZ header exists */
|
||||
PEDosHeader = (PIMAGE_DOS_HEADER) ImageBase;
|
||||
DPRINT1("PEDosHeader %x\n", PEDosHeader);
|
||||
DPRINT("PEDosHeader %x\n", PEDosHeader);
|
||||
|
||||
if (PEDosHeader->e_magic != IMAGE_DOS_SIGNATURE ||
|
||||
PEDosHeader->e_lfanew == 0L ||
|
||||
|
@ -294,12 +294,12 @@ LdrpInit(PCONTEXT Context,
|
|||
NTHeaders = (PIMAGE_NT_HEADERS)((ULONG_PTR)ImageBase + PEDosHeader->e_lfanew);
|
||||
|
||||
/* Get number of processors */
|
||||
DPRINT1("Here\n");
|
||||
DPRINT("Here\n");
|
||||
Status = ZwQuerySystemInformation(SystemBasicInformation,
|
||||
&SystemInformation,
|
||||
sizeof(SYSTEM_BASIC_INFORMATION),
|
||||
NULL);
|
||||
DPRINT1("Here2\n");
|
||||
DPRINT("Here2\n");
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
ZwTerminateProcess(NtCurrentProcess(), Status);
|
||||
|
|
Loading…
Reference in a new issue