mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Use FileHeader->SizeOfOptionalHeader instead of sizeof(IMAGE_OPTIONAL_HEADER) as the real size of the optional header.
svn path=/trunk/; revision=11461
This commit is contained in:
parent
d85e7ec614
commit
4daf602867
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: loader.c,v 1.149 2004/10/22 20:33:53 ekohl Exp $
|
/* $Id: loader.c,v 1.150 2004/10/26 10:56:38 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -857,7 +857,7 @@ LdrPEProcessModule(PVOID ModuleLoadBase,
|
||||||
DPRINT("OptionalHeader at %x\n", CreatedModuleObject->Image.PE.OptionalHeader);
|
DPRINT("OptionalHeader at %x\n", CreatedModuleObject->Image.PE.OptionalHeader);
|
||||||
CreatedModuleObject->Image.PE.SectionList =
|
CreatedModuleObject->Image.PE.SectionList =
|
||||||
(PIMAGE_SECTION_HEADER) ((unsigned int) DriverBase + PEDosHeader->e_lfanew + sizeof(ULONG) +
|
(PIMAGE_SECTION_HEADER) ((unsigned int) DriverBase + PEDosHeader->e_lfanew + sizeof(ULONG) +
|
||||||
sizeof(IMAGE_FILE_HEADER) + sizeof(IMAGE_OPTIONAL_HEADER));
|
sizeof(IMAGE_FILE_HEADER) + CreatedModuleObject->Image.PE.FileHeader->SizeOfOptionalHeader);
|
||||||
DPRINT("SectionList at %x\n", CreatedModuleObject->Image.PE.SectionList);
|
DPRINT("SectionList at %x\n", CreatedModuleObject->Image.PE.SectionList);
|
||||||
|
|
||||||
/* Perform import fixups */
|
/* Perform import fixups */
|
||||||
|
|
Loading…
Reference in a new issue