mirror of
https://github.com/reactos/reactos.git
synced 2024-07-31 08:39:05 +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
|
@ -655,7 +655,13 @@ FrLdrMapImage(IN FILE *Image,
|
||||||
if (ImageType == 1) FrLdrLoadImage("hal.dll", 10, FALSE);
|
if (ImageType == 1) FrLdrLoadImage("hal.dll", 10, FALSE);
|
||||||
|
|
||||||
/* Perform import fixups */
|
/* 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 the final mapped address */
|
||||||
return LoadBase;
|
return LoadBase;
|
||||||
|
|
Loading…
Reference in a new issue