- 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:
Aleksey Bragin 2007-06-09 13:10:02 +00:00
parent 62c077140e
commit db99cff20e

View file

@ -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;