mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
- If the module failed to load (e.g. fixup couldn't be done), then don't include it in the list of loaded modules.
svn path=/trunk/; revision=27086
This commit is contained in:
parent
62c077140e
commit
db99cff20e
1 changed files with 7 additions and 1 deletions
|
@ -655,7 +655,13 @@ FrLdrMapImage(IN FILE *Image,
|
|||
if (ImageType == 1) FrLdrLoadImage("hal.dll", 10, FALSE);
|
||||
|
||||
/* Perform import fixups */
|
||||
LdrPEFixupImports(LoadBase, Name);
|
||||
if (!NT_SUCCESS(LdrPEFixupImports(LoadBase, Name)))
|
||||
{
|
||||
/* Fixup failed, just don't include it in the list */
|
||||
// NextModuleBase = OldNextModuleBase;
|
||||
LoaderBlock.ModsCount = ImageId;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Return the final mapped address */
|
||||
return LoadBase;
|
||||
|
|
Loading…
Reference in a new issue