Skip to content

Commit 1250609

Browse files
committed
[RTL] Revert some accidental formatting changes in r70634. NFC.
svn path=/trunk/; revision=70635
1 parent 445a748 commit 1250609

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

reactos/lib/rtl/image.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -346,24 +346,24 @@ RtlImageRvaToVa(
346346
{
347347
PIMAGE_SECTION_HEADER Section = NULL;
348348

349-
if (SectionHeader)
350-
Section = *SectionHeader;
349+
if (SectionHeader)
350+
Section = *SectionHeader;
351351

352-
if ((Section == NULL) ||
353-
(Rva < SWAPD(Section->VirtualAddress)) ||
354-
(Rva >= SWAPD(Section->VirtualAddress) + SWAPD(Section->SizeOfRawData)))
355-
{
356-
Section = RtlImageRvaToSection(NtHeader, BaseAddress, Rva);
357-
if (Section == NULL)
358-
return NULL;
352+
if ((Section == NULL) ||
353+
(Rva < SWAPD(Section->VirtualAddress)) ||
354+
(Rva >= SWAPD(Section->VirtualAddress) + SWAPD(Section->SizeOfRawData)))
355+
{
356+
Section = RtlImageRvaToSection(NtHeader, BaseAddress, Rva);
357+
if (Section == NULL)
358+
return NULL;
359359

360-
if (SectionHeader)
361-
*SectionHeader = Section;
362-
}
360+
if (SectionHeader)
361+
*SectionHeader = Section;
362+
}
363363

364-
return (PVOID)((ULONG_PTR)BaseAddress + Rva +
365-
(ULONG_PTR)SWAPD(Section->PointerToRawData) -
366-
(ULONG_PTR)SWAPD(Section->VirtualAddress));
364+
return (PVOID)((ULONG_PTR)BaseAddress + Rva +
365+
(ULONG_PTR)SWAPD(Section->PointerToRawData) -
366+
(ULONG_PTR)SWAPD(Section->VirtualAddress));
367367
}
368368

369369
PIMAGE_BASE_RELOCATION
@@ -426,7 +426,7 @@ LdrProcessRelocationBlockLongLong(
426426
default:
427427
DPRINT1("Unknown/unsupported fixup type %hu.\n", Type);
428428
DPRINT1("Address %p, Current %u, Count %u, *TypeOffset %x\n",
429-
(PVOID)Address, i, Count, SWAPW(*TypeOffset));
429+
(PVOID)Address, i, Count, SWAPW(*TypeOffset));
430430
return (PIMAGE_BASE_RELOCATION)NULL;
431431
}
432432

0 commit comments

Comments
 (0)