mirror of
https://github.com/reactos/reactos.git
synced 2024-08-02 17:40:58 +00:00
[RTL] Revert some accidental formatting changes in r70634. NFC.
svn path=/trunk/; revision=70635
This commit is contained in:
parent
445a748bf8
commit
125060988e
|
@ -346,24 +346,24 @@ RtlImageRvaToVa(
|
||||||
{
|
{
|
||||||
PIMAGE_SECTION_HEADER Section = NULL;
|
PIMAGE_SECTION_HEADER Section = NULL;
|
||||||
|
|
||||||
if (SectionHeader)
|
|
||||||
Section = *SectionHeader;
|
|
||||||
|
|
||||||
if ((Section == NULL) ||
|
|
||||||
(Rva < SWAPD(Section->VirtualAddress)) ||
|
|
||||||
(Rva >= SWAPD(Section->VirtualAddress) + SWAPD(Section->SizeOfRawData)))
|
|
||||||
{
|
|
||||||
Section = RtlImageRvaToSection(NtHeader, BaseAddress, Rva);
|
|
||||||
if (Section == NULL)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
if (SectionHeader)
|
if (SectionHeader)
|
||||||
*SectionHeader = Section;
|
Section = *SectionHeader;
|
||||||
}
|
|
||||||
|
|
||||||
return (PVOID)((ULONG_PTR)BaseAddress + Rva +
|
if ((Section == NULL) ||
|
||||||
(ULONG_PTR)SWAPD(Section->PointerToRawData) -
|
(Rva < SWAPD(Section->VirtualAddress)) ||
|
||||||
(ULONG_PTR)SWAPD(Section->VirtualAddress));
|
(Rva >= SWAPD(Section->VirtualAddress) + SWAPD(Section->SizeOfRawData)))
|
||||||
|
{
|
||||||
|
Section = RtlImageRvaToSection(NtHeader, BaseAddress, Rva);
|
||||||
|
if (Section == NULL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
if (SectionHeader)
|
||||||
|
*SectionHeader = Section;
|
||||||
|
}
|
||||||
|
|
||||||
|
return (PVOID)((ULONG_PTR)BaseAddress + Rva +
|
||||||
|
(ULONG_PTR)SWAPD(Section->PointerToRawData) -
|
||||||
|
(ULONG_PTR)SWAPD(Section->VirtualAddress));
|
||||||
}
|
}
|
||||||
|
|
||||||
PIMAGE_BASE_RELOCATION
|
PIMAGE_BASE_RELOCATION
|
||||||
|
@ -426,7 +426,7 @@ LdrProcessRelocationBlockLongLong(
|
||||||
default:
|
default:
|
||||||
DPRINT1("Unknown/unsupported fixup type %hu.\n", Type);
|
DPRINT1("Unknown/unsupported fixup type %hu.\n", Type);
|
||||||
DPRINT1("Address %p, Current %u, Count %u, *TypeOffset %x\n",
|
DPRINT1("Address %p, Current %u, Count %u, *TypeOffset %x\n",
|
||||||
(PVOID)Address, i, Count, SWAPW(*TypeOffset));
|
(PVOID)Address, i, Count, SWAPW(*TypeOffset));
|
||||||
return (PIMAGE_BASE_RELOCATION)NULL;
|
return (PIMAGE_BASE_RELOCATION)NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue