mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 07:55:56 +00:00
section.c wasn't meant to be part of r30401
svn path=/trunk/; revision=30404
This commit is contained in:
parent
9c5a81037b
commit
899ac74d81
1 changed files with 0 additions and 49 deletions
|
@ -55,17 +55,6 @@
|
||||||
#pragma alloc_text(INIT, MmInitSectionImplementation)
|
#pragma alloc_text(INIT, MmInitSectionImplementation)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
FORCEINLINE
|
|
||||||
VOID
|
|
||||||
sprintf_nt(IN PCHAR Buffer,
|
|
||||||
IN PCHAR Format,
|
|
||||||
IN ...)
|
|
||||||
{
|
|
||||||
va_list ap;
|
|
||||||
va_start(ap, Format);
|
|
||||||
vsprintf(Buffer, Format, ap);
|
|
||||||
va_end(ap);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* TYPES *********************************************************************/
|
/* TYPES *********************************************************************/
|
||||||
|
|
||||||
|
@ -4517,9 +4506,6 @@ MmMapViewOfSection(IN PVOID SectionObject,
|
||||||
PROS_SECTION_OBJECT Section;
|
PROS_SECTION_OBJECT Section;
|
||||||
PMADDRESS_SPACE AddressSpace;
|
PMADDRESS_SPACE AddressSpace;
|
||||||
ULONG ViewOffset;
|
ULONG ViewOffset;
|
||||||
//ANSI_STRING AnsiTemp;
|
|
||||||
//PCHAR Buffer;
|
|
||||||
|
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
|
|
||||||
ASSERT(Process);
|
ASSERT(Process);
|
||||||
|
@ -4622,41 +4608,6 @@ MmMapViewOfSection(IN PVOID SectionObject,
|
||||||
}
|
}
|
||||||
|
|
||||||
*BaseAddress = (PVOID)ImageBase;
|
*BaseAddress = (PVOID)ImageBase;
|
||||||
|
|
||||||
/* Notify debugger about image being loaded */
|
|
||||||
if (NtGlobalFlag & FLG_ENABLE_KDEBUG_SYMBOL_LOAD)
|
|
||||||
{
|
|
||||||
#ifdef KDBG
|
|
||||||
/* If KDBG is defined, then we always have symbols */
|
|
||||||
if (TRUE)
|
|
||||||
#else
|
|
||||||
if (MiCacheImageSymbols(ImageBase))
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
#if 0
|
|
||||||
MmUnlockAddressSpace(AddressSpace);
|
|
||||||
|
|
||||||
/* Allocate a buffer we'll use for names */
|
|
||||||
Buffer = ExAllocatePoolWithTag(NonPagedPool, MAX_PATH, TAG_LDR_WSTR);
|
|
||||||
if (Buffer)
|
|
||||||
{
|
|
||||||
/* Build the name */
|
|
||||||
sprintf_nt(Buffer, "%wZ", &Section->FileObject->FileName);
|
|
||||||
|
|
||||||
/* Setup the ansi string */
|
|
||||||
RtlInitString(&AnsiTemp, Buffer);
|
|
||||||
|
|
||||||
/* Notify the debugger */
|
|
||||||
DbgLoadImageSymbols(&AnsiTemp, (PVOID)ImageBase, (ULONG_PTR)Process);
|
|
||||||
|
|
||||||
/* Free allocated buffer */
|
|
||||||
ExFreePool(Buffer);
|
|
||||||
}
|
|
||||||
|
|
||||||
MmLockAddressSpace(AddressSpace);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue