@@ -346,24 +346,24 @@ RtlImageRvaToVa(
346
346
{
347
347
PIMAGE_SECTION_HEADER Section = NULL ;
348
348
349
- if (SectionHeader )
350
- Section = * SectionHeader ;
349
+ if (SectionHeader )
350
+ Section = * SectionHeader ;
351
351
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 ;
359
359
360
- if (SectionHeader )
361
- * SectionHeader = Section ;
362
- }
360
+ if (SectionHeader )
361
+ * SectionHeader = Section ;
362
+ }
363
363
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 ));
367
367
}
368
368
369
369
PIMAGE_BASE_RELOCATION
@@ -426,7 +426,7 @@ LdrProcessRelocationBlockLongLong(
426
426
default :
427
427
DPRINT1 ("Unknown/unsupported fixup type %hu.\n" , Type );
428
428
DPRINT1 ("Address %p, Current %u, Count %u, *TypeOffset %x\n" ,
429
- (PVOID )Address , i , Count , SWAPW (* TypeOffset ));
429
+ (PVOID )Address , i , Count , SWAPW (* TypeOffset ));
430
430
return (PIMAGE_BASE_RELOCATION )NULL ;
431
431
}
432
432
0 commit comments