mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 14:56:31 +00:00
[INCLUDE:HOST] Revert a bug that has been sneaked in by Arch Blackmann in 9e9ba41f
(r36910) :P
The "TypeOffset" thing was just an informative comment to tell that the data that follows after the IMAGE_BASE_RELOCATION header is an arbitrary array of WORDs describing packed (Type + Offset)s. Having the header structure containing that spurious "TypeOffset" was breaking all the code that was basing on expected size of the IMAGE_BASE_RELOCATION structure in order to apply relocations (typically this would mean that the first 2 relocations described by it would not be applied). Hopefully this bug only hit the host-tools, and not the OS itself :)
This commit is contained in:
parent
0f4f29d2ca
commit
18fe055275
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ typedef struct _IMAGE_SECTION_HEADER {
|
||||||
typedef struct _IMAGE_BASE_RELOCATION {
|
typedef struct _IMAGE_BASE_RELOCATION {
|
||||||
DWORD VirtualAddress;
|
DWORD VirtualAddress;
|
||||||
DWORD SizeOfBlock;
|
DWORD SizeOfBlock;
|
||||||
WORD TypeOffset[1];
|
// Followed by: WORD TypeOffset[ANYSIZE_ARRAY];
|
||||||
} IMAGE_BASE_RELOCATION,*PIMAGE_BASE_RELOCATION;
|
} IMAGE_BASE_RELOCATION,*PIMAGE_BASE_RELOCATION;
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue